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.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix
new file mode 100644
index 0000000..b4ea77a
--- /dev/null
+++ b/modules/shell/zsh/default.nix
@@ -0,0 +1,15 @@
+{ config, lib, ... }:
+
+{
+ options = {
+ zsh.enable = lib.mkEnableOption "Enables zsh.";
+ };
+
+ config = lib.mkIf config.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;
+ };
+}