diff options
Diffstat (limited to 'modules/zsh.nix')
| -rw-r--r-- | modules/zsh.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/zsh.nix b/modules/zsh.nix new file mode 100644 index 0000000..5085263 --- /dev/null +++ b/modules/zsh.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.zsh; +in +{ + options.modules.zsh = { + enable = lib.mkEnableOption "zsh"; + }; + + config = { + home.packages = with pkgs; [ + zsh + oh-my-zsh + zsh-autosuggestions + ]; + + programs.zsh = lib.mkIf cfg.enable { + enable = true; + enableCompletion = true; + autosuggestion.enable = true; + oh-my-zsh = { + enable = true; + theme = "lambda"; + }; + }; + }; +} |