diff --git a/modules/nixos/lxc.nix b/modules/nixos/lxc.nix index 1cd339f..368fccb 100644 --- a/modules/nixos/lxc.nix +++ b/modules/nixos/lxc.nix @@ -17,6 +17,7 @@ dates = "weekly"; options = "--delete-older-than 30d"; }; + programs.bash.enable = true; }; # Generic bootstrapping lxc, use a specific host file for more diff --git a/modules/programs/bash.nix b/modules/programs/bash.nix index 897939b..8fef51b 100644 --- a/modules/programs/bash.nix +++ b/modules/programs/bash.nix @@ -1,7 +1,7 @@ { - flake.modules.homeManager.bash = { pkgs, ... }: + flake.modules.homeManager.bash = { pkgs, lib, config, ... }: { - programs.bash = { + programs.bash = lib.mkIf (config.shell.program == "bash") { enable = true; enableCompletion = true; package = pkgs.bash; diff --git a/modules/programs/shell-tools.nix b/modules/programs/shell-tools.nix index 1c7c710..9c26c2f 100644 --- a/modules/programs/shell-tools.nix +++ b/modules/programs/shell-tools.nix @@ -18,7 +18,6 @@ ]; config = { - programs.bash.enable = lib.mkForce (config.shell.program == "bash"); programs.zsh.enable = lib.mkForce (config.shell.program == "zsh"); home.shell.enableShellIntegration = true;