From 7b7c72090cc5ed3240b9ae6d9a669a101dc20512 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 12 Nov 2025 13:56:21 +0800 Subject: [PATCH] modules.packages/system: disable firefox steam binfmt on server --- modules/packages/firefox.nix | 2 +- modules/packages/steam.nix | 2 +- modules/system/binfmt.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {