diff options
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 + }; } |
