aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/zsh/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-28 00:37:34 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-28 00:37:34 +0530
commitbdf5331c964e80204caaa7e54a60ef69748f33ed (patch)
tree2dd6d20d307951adc6647d999cc3351646b85f41 /modules/shell/zsh/default.nix
parent4d315448c08f98140229f006898dc408fcb6953e (diff)
downloadhome-manager-config-bdf5331c964e80204caaa7e54a60ef69748f33ed.tar.gz
home-manager-config-bdf5331c964e80204caaa7e54a60ef69748f33ed.zip
Added ability to change the default program if multiple programs for the same purpose are enabled.
Diffstat (limited to 'modules/shell/zsh/default.nix')
-rw-r--r--modules/shell/zsh/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix
index 7d7a261..0c14b8c 100644
--- a/modules/shell/zsh/default.nix
+++ b/modules/shell/zsh/default.nix
@@ -6,7 +6,11 @@
};
config = lib.mkIf config.shell.zsh.enable {
- shell.default = "${pkgs.zsh}/bin/zsh";
+ shell.default = lib.mkDefault "zsh";
+ shell.command =
+ if config.shell.default == "zsh" then
+ lib.mkForce "${pkgs.zsh}/bin/zsh"
+ else "";
programs.zsh.enable = true;
programs.zsh.dotDir = ".config/zsh";