nix-config/pkgs/zsh.nix
2024-04-08 15:26:45 +02:00

26 lines
459 B
Nix

{
config,
pkgs,
...
}: {
users.defaultUserShell = pkgs.zsh;
environment.shells = with pkgs; [ zsh ];
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
shellAliases = {
update = "sudo nixos-rebuild switch --flake";
};
ohMyZsh = {
enable = true;
plugins = ["git"];
theme = "robbyrussell";
};
shellInit = "eval \"$(zoxide init zsh --cmd cd)\"";
};
}