aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shell/zsh')
-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";