diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix index 1be2d49f9708..98f837bd7824 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 {