diff --git a/modules/packages/firefox.nix b/modules/packages/firefox.nix index 926ea7c6..52cfd3fd 100644 --- a/modules/packages/firefox.nix +++ b/modules/packages/firefox.nix @@ -3,7 +3,7 @@ inputs: options.nixos.packages.firefox = let inherit (inputs.lib) mkOption types; in mkOption { type = types.nullOr (types.submodule {}); - default = if builtins.elem inputs.config.nixos.model.type [ "desktop" "server" ] then {} else null; + default = if inputs.config.nixos.model.type == "desktop" then {} else null; }; config = let inherit (inputs.config.nixos.packages) firefox; in inputs.lib.mkIf (firefox != null) { diff --git a/modules/packages/steam.nix b/modules/packages/steam.nix index 40dddf02..430ea99f 100644 --- a/modules/packages/steam.nix +++ b/modules/packages/steam.nix @@ -3,7 +3,7 @@ inputs: options.nixos.packages.steam = let inherit (inputs.lib) mkOption types; in mkOption { type = types.nullOr (types.submodule {}); - default = if builtins.elem inputs.config.nixos.model.type [ "desktop" "server" ] then {} else null; + default = if inputs.config.nixos.model.type == "desktop" then {} else null; }; config = let inherit (inputs.config.nixos.packages) steam; in inputs.lib.mkIf (steam != null) { diff --git a/modules/system/binfmt.nix b/modules/system/binfmt.nix index 4d9ed9a7..2f5b8d81 100644 --- a/modules/system/binfmt.nix +++ b/modules/system/binfmt.nix @@ -3,7 +3,7 @@ inputs: options.nixos.system.binfmt = let inherit (inputs.lib) mkOption types; in mkOption { type = types.nullOr (types.submodule {}); - default = if builtins.elem inputs.config.nixos.model.type [ "desktop" "server" ] then {} else null; + default = if inputs.config.nixos.model.type == "desktop" then {} else null; }; config = let inherit (inputs.config.nixos.system) binfmt; in inputs.lib.mkIf (binfmt != null) {