aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-25 19:41:02 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2024-09-25 19:41:02 +0530
commit478081af928e1557b325f4a4cbd5b67f079660d2 (patch)
treec7975b403c29acfd4de91664320e7ebbd0ac1685 /modules/shell
parent165cde749fc899d4c86eb6de97d3b7c4373eb7b3 (diff)
downloadhome-manager-config-478081af928e1557b325f4a4cbd5b67f079660d2.tar.gz
home-manager-config-478081af928e1557b325f4a4cbd5b67f079660d2.zip
Adding nnn file manager.
Adding bspwm bindings to sxhkd only if the module is enabled.
Diffstat (limited to 'modules/shell')
-rw-r--r--modules/shell/default.nix2
-rw-r--r--modules/shell/zsh/default.nix3
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/shell/default.nix b/modules/shell/default.nix
index 2dbd054..27a919a 100644
--- a/modules/shell/default.nix
+++ b/modules/shell/default.nix
@@ -8,7 +8,7 @@
options.shell = {
default = lib.mkOption {
- type = lib.types.string;
+ type = lib.types.str;
description = "Path to the default shell program.";
};
alias = lib.mkOption {
diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix
index c553ec4..7d7a261 100644
--- a/modules/shell/zsh/default.nix
+++ b/modules/shell/zsh/default.nix
@@ -6,11 +6,12 @@
};
config = lib.mkIf config.shell.zsh.enable {
+ shell.default = "${pkgs.zsh}/bin/zsh";
+
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.shell.alias;
- shell.default = "${pkgs.zsh}/bin/zsh";
};
}