diff --git a/modules/config/home-manager.nix b/modules/config/home-manager.nix index a7d6fcd..70ce75a 100644 --- a/modules/config/home-manager.nix +++ b/modules/config/home-manager.nix @@ -1,6 +1,7 @@ { inputs, config, + minimal, ... }: { home-manager = { @@ -13,6 +14,9 @@ home.stateVersion = config.system.stateVersion; } ]; + extraSpecialArgs = { + inherit minimal; + }; }; # Required even when using home-manager's zsh module since the /etc/profile load order diff --git a/modules/optional/hardware/physical.nix b/modules/optional/hardware/physical.nix index 5eb7123..5a88e99 100644 --- a/modules/optional/hardware/physical.nix +++ b/modules/optional/hardware/physical.nix @@ -1,11 +1,16 @@ # Configuration for actual physical machines -{config, ...}: { +{ + config, + lib, + minimal, + ... +}: { hardware = { enableRedistributableFirmware = true; enableAllFirmware = true; }; - services = { + services = lib.mkIf (!minimal) { fwupd.enable = true; smartd.enable = true; thermald.enable = builtins.elem config.nixpkgs.hostPlatform.system ["x86_64-linux"]; diff --git a/users/modules/config/shell/nushell/default.nix b/users/modules/config/shell/nushell/default.nix index d9e05fa..5f6234d 100644 --- a/users/modules/config/shell/nushell/default.nix +++ b/users/modules/config/shell/nushell/default.nix @@ -1,4 +1,9 @@ { + lib, + minimal, + ... +}: +lib.optionalAttrs (!minimal) { programs.nushell = { enable = true; configFile.source = ./config.nu; diff --git a/users/modules/config/utils.nix b/users/modules/config/utils.nix index b04055a..c7103fe 100644 --- a/users/modules/config/utils.nix +++ b/users/modules/config/utils.nix @@ -1,4 +1,10 @@ -{pkgs, ...}: { +{ + pkgs, + lib, + minimal, + ... +}: +lib.optionalAttrs (!minimal) { home = { packages = with pkgs; [ bandwhich