summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorZhaofeng Li <hello@zhaofeng.li>2022-10-10 00:01:03 -0600
committerZhaofeng Li <hello@zhaofeng.li>2022-10-10 00:01:32 -0600
commitbbbda58c4e99601935728cc568874897d98221c1 (patch)
treef369ebea4e4512a09355976be26f16ed89a635ce /nixos
parentc5924154f000e6306030300592f4282949b2db6c (diff)
nixos/fwupd: Fix configuration file merging
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/hardware/fwupd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix
index 1be2d49f9708f..98f837bd78245 100644
--- a/nixos/modules/services/hardware/fwupd.nix
+++ b/nixos/modules/services/hardware/fwupd.nix
@@ -50,7 +50,7 @@ let
     # to install it because it would create a cyclic dependency between
     # the outputs. We also need to enable the remote,
     # which should not be done by default.
-    mkIf cfg.enableTestRemote (enableRemote cfg.package.installedTests "fwupd-tests")
+    if cfg.enableTestRemote then (enableRemote cfg.package.installedTests "fwupd-tests") else {}
   );
 
 in {