Move bash configuration from home to nixos module

This commit is contained in:
2026-04-07 18:06:42 +02:00
parent 4388cc6249
commit 9ff3f739d0
2 changed files with 2 additions and 2 deletions

View File

@@ -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";

View File

@@ -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";