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