aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/zsh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shell/zsh/default.nix')
-rw-r--r--modules/shell/zsh/default.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix
index b4ea77a..c553ec4 100644
--- a/modules/shell/zsh/default.nix
+++ b/modules/shell/zsh/default.nix
@@ -1,15 +1,16 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
{
- options = {
- zsh.enable = lib.mkEnableOption "Enables zsh.";
+ options.shell.zsh = {
+ enable = lib.mkEnableOption "Enables zsh.";
};
- config = lib.mkIf config.zsh.enable {
+ config = lib.mkIf config.shell.zsh.enable {
programs.zsh.enable = true;
programs.zsh.dotDir = ".config/zsh";
programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history";
programs.zsh.initExtra = builtins.readFile ./zshrc;
- programs.zsh.shellAliases = config.programs.bash.shellAliases;
+ programs.zsh.shellAliases = config.shell.alias;
+ shell.default = "${pkgs.zsh}/bin/zsh";
};
}