nixos/modules/programs/zsh.nix
2026-10-08 11:50:38 +02:00

17 lines
398 B
Nix

{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
ohMyZsh = {
enable = true;
theme = "gentoo";
};
shellInit = ''
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/rbw/ssh-agent-socket"
eval "$(devenv hook zsh)"
'';
};
system.userActivationScripts.zshrc = "touch .zshrc";
}