From 3b6731f6f065fa9936d94f188b0c8cf7a33cf04c Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Wed, 30 Jul 2025 19:23:34 +0200 Subject: [PATCH] stylix/testbed/modules/common: globally enable Bash (#1803) Globally enable Bash to ensure environment variables are set, avoiding individual testbeds to consider environment variable implementation details. Link: https://github.com/nix-community/stylix/pull/1803 Reviewed-by: awwpotato --- modules/fzf/testbeds/fzf.nix | 5 +---- stylix/testbed/modules/common.nix | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/fzf/testbeds/fzf.nix b/modules/fzf/testbeds/fzf.nix index 1f842080..d17f32b2 100644 --- a/modules/fzf/testbeds/fzf.nix +++ b/modules/fzf/testbeds/fzf.nix @@ -6,9 +6,6 @@ }; home-manager.sharedModules = lib.singleton { - programs = { - bash.enable = true; - fzf.enable = true; - }; + programs.fzf.enable = true; }; } diff --git a/stylix/testbed/modules/common.nix b/stylix/testbed/modules/common.nix index 177dfb6e..b8eb5ac6 100644 --- a/stylix/testbed/modules/common.nix +++ b/stylix/testbed/modules/common.nix @@ -17,6 +17,12 @@ in home-manager.users.${user.username}.home.stateVersion = config.system.nixos.release; + home-manager.sharedModules = lib.singleton { + # Enable Bash to ensure environment variables are set, avoiding individual + # testbeds to consider environment variable implementation details. + programs.bash.enable = true; + }; + virtualisation.vmVariant.virtualisation = { # This is a maximum limit; the VM should still work if the host has fewer cores. cores = 4;