Move bash configuration from home to nixos module
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
defaultShell = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "zsh";
|
||||
description = "Default shell (dash, zsh, fish)";
|
||||
description = "Default shell (bash, zsh, fish)";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
cfg = config.custom.shell;
|
||||
in lib.mkIf cfg.enable {
|
||||
|
||||
programs.bash.enable = true;
|
||||
programs.zsh.enable = cfg.defaultShell == "zsh";
|
||||
programs.fish.enable = cfg.defaultShell == "fish";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user