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/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/default.nix')
| -rw-r--r-- | modules/shell/default.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/shell/default.nix b/modules/shell/default.nix index e4c3964..2dbd054 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -1,8 +1,24 @@ -{ lib, config, ... }: +{ lib, pkgs, ... }: { imports = [ ./bash ./zsh ]; + + options.shell = { + default = lib.mkOption { + type = lib.types.string; + description = "Path to the default shell program."; + }; + alias = lib.mkOption { + type = lib.types.attrs; + description = "Shell aliases."; + }; + }; + + config = { + shell.default = lib.mkDefault "${pkgs.bash}/bin/bash"; # Set bash as default shell + shell.bash.enable = lib.mkDefault true; # Enable bash by default + }; } |
