diff options
Diffstat (limited to 'modules/shell')
-rw-r--r-- | modules/shell/default.nix | 3 | ||||
-rw-r--r-- | modules/shell/zsh/default.nix | 32 |
2 files changed, 35 insertions, 0 deletions
diff --git a/modules/shell/default.nix b/modules/shell/default.nix new file mode 100644 index 0000000..03028ee --- /dev/null +++ b/modules/shell/default.nix @@ -0,0 +1,3 @@ +[ + ./zsh +] diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix new file mode 100644 index 0000000..471bc57 --- /dev/null +++ b/modules/shell/zsh/default.nix @@ -0,0 +1,32 @@ +{ config, pkgs, user, ... }: +{ + config = { + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; + }; + + config.home-manager.users.${user} = { + home.packages = with pkgs; [ + inotify-tools + ]; + + programs.zsh = { + enable = true; + shellAliases = { + ll = "ls -l"; + unixos = "sudo nixos-rebuild switch --flake /etc/nixos"; + }; + history = { + size = 10000; + ignoreDups = true; + }; + + oh-my-zsh = { + enable = true; + plugins = [ "git" "thefuck" "pass" ]; + theme = "dst"; + }; + syntaxHighlighting.enable = true; + }; + }; +} |