diff --git a/modules/packages/root.nix b/modules/packages/root.nix index 691983f6..25efb494 100644 --- a/modules/packages/root.nix +++ b/modules/packages/root.nix @@ -1,7 +1,10 @@ inputs: { options.nixos.packages.root = let inherit (inputs.lib) mkOption types; in mkOption - { type = types.nullOr (types.submodule {}); default = {}; }; + { + type = types.nullOr (types.submodule {}); + default = if inputs.config.nixos.model.type == "desktop" then {} else null; + }; config = let inherit (inputs.config.nixos.packages) root; in inputs.lib.mkIf (root != null) { nixos.packages.packages =