forked from the-distro/infra
change the default user shell to zsh
This commit is contained in:
parent
e6ead602f0
commit
bed5ef022f
|
@ -7,5 +7,6 @@
|
||||||
./raito-proxy-aware-nginx.nix
|
./raito-proxy-aware-nginx.nix
|
||||||
./raito-vm.nix
|
./raito-vm.nix
|
||||||
./sysadmin
|
./sysadmin
|
||||||
|
./zsh.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
16
common/zsh.nix
Normal file
16
common/zsh.nix
Normal 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} %/ \$ '
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue