diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:32:36 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-15 20:32:36 +0530 |
| commit | 23616c2e13f63f0262d64538032b98ce83cc0ec2 (patch) | |
| tree | 3ea56e8c12c6735b5dddb34b5699c59c00066b0f /modules/terminal/zsh/default.nix | |
| parent | 01aaa7ad39c1fe8af6ffbca31abbab27dbfefc95 (diff) | |
| download | home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.tar.gz home-manager-config-23616c2e13f63f0262d64538032b98ce83cc0ec2.zip | |
feat: renamed the options to reflect their changed directory stucture
Renamed the options for the configurations based on the sub-module that
they belong to
Diffstat (limited to 'modules/terminal/zsh/default.nix')
| -rw-r--r-- | modules/terminal/zsh/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/terminal/zsh/default.nix b/modules/terminal/zsh/default.nix index f3bdbb1..842556a 100644 --- a/modules/terminal/zsh/default.nix +++ b/modules/terminal/zsh/default.nix @@ -7,13 +7,19 @@ # Zsh - Z shell, extended bash with additional features and plugins { + options.terminal.zsh = { + enable = lib.mkEnableOption "Enables zsh."; + package = lib.mkPackageOption pkgs "zsh" { }; + }; + config = let nixCommandWrappers = builtins.readFile ./nix-aliases.sh; in - lib.mkIf config.programs.zsh.enable { + lib.mkIf config.terminal.zsh.enable { programs.zsh = { - package = pkgs.zsh; + enable = true; + package = config.terminal.zsh.package; dotDir = "${config.xdg.configHome}/zsh"; history.path = "${config.xdg.cacheHome}/zsh/history"; enableCompletion = true; @@ -31,8 +37,8 @@ ''; }; - programs.bash.initExtra = lib.mkIf config.programs.bash.enable (lib.mkAfter nixCommandWrappers); + programs.bash.initExtra = lib.mkIf config.terminal.bash.enable (lib.mkAfter nixCommandWrappers); - home.sessionVariables.SHELL = "${lib.getExe config.programs.zsh.package}"; + home.sessionVariables.SHELL = "${lib.getExe config.terminal.zsh.package}"; }; } |
