nixos/modules/common/shell.nix
Jake Hillion d7c17a7f77
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
thefuck: enable for all users
2023-01-22 18:30:53 +00:00

22 lines
394 B
Nix

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