feat: change the default shell to zsh

Reviewed-on: the-distro/infra#59
This commit is contained in:
raito 2024-07-17 12:56:45 +00:00
commit 81fc914d79
2 changed files with 17 additions and 0 deletions

View file

@ -7,5 +7,6 @@
./raito-proxy-aware-nginx.nix
./raito-vm.nix
./sysadmin
./zsh.nix
];
}

16
common/zsh.nix Normal file
View file

@ -0,0 +1,16 @@
{ lib, pkgs, config, ... }: {
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
interactiveShellInit = ''
${lib.getExe pkgs.nix-your-shell} zsh | source /dev/stdin
'';
promptInit = ''
# https://grml.org/zsh/grml-zsh-refcard.pdf
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
PS1='%n@${config.networking.fqdn} %/ \$ '
'';
};
}