nixos/modules/common/shell.nix
Jake Hillion 562ed2f53f
All checks were successful
continuous-integration/drone/push Build is passing
zsh: fix history and empty .zshrc
2023-06-04 15:57:27 +01:00

27 lines
471 B
Nix

{ pkgs, lib, config, ... }:
{
config.users.defaultUserShell = pkgs.zsh;
config.programs.thefuck.enable = true;
config.programs.zsh = {
enable = true;
histSize = 1000000;
histFile = "$HOME/.zsh_history";
setOptions = [
"INC_APPEND_HISTORY"
"SHARE_HISTORY"
];
syntaxHighlighting = {
enable = true;
};
shellAliases = {
"nixos-rebuild" = "nixos-rebuild --flake \"/etc/nixos#$(hostname -f)\"";
};
};
}