diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-25 00:17:41 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-09-25 00:17:41 +0530 |
| commit | 165cde749fc899d4c86eb6de97d3b7c4373eb7b3 (patch) | |
| tree | ec4d3cc00089b815dc0c56761348de4345705c43 /modules/shell/zsh/default.nix | |
| parent | c0c5087218c27e31c3e6f66f3937bff22fa0f647 (diff) | |
| download | home-manager-config-165cde749fc899d4c86eb6de97d3b7c4373eb7b3.tar.gz home-manager-config-165cde749fc899d4c86eb6de97d3b7c4373eb7b3.zip | |
Using more descriptive option names.
Diffstat (limited to 'modules/shell/zsh/default.nix')
| -rw-r--r-- | modules/shell/zsh/default.nix | 11 |
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"; }; } |
