diff options
author | Felix Buehler <account@buehler.rocks> | 2023-06-25 12:25:42 +0200 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-06-25 11:01:34 -0300 |
commit | 6672dde558ea2bdbb1ff12009574e02a3dd758e3 (patch) | |
tree | 4d2eae2e923ef057389d2c5e03932c26782668f5 /nixos/modules/services/hardware | |
parent | fa6b5a3cb318d80d9c1da868c76271c3891e59a3 (diff) |
treewide: use optionalAttrs instead of 'else {}'
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r-- | nixos/modules/services/hardware/fwupd.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix index 9ea1d0cf4165d..4e5913fd27515 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. - if cfg.enableTestRemote then (enableRemote cfg.package.installedTests "fwupd-tests") else {} + lib.optionalAttrs cfg.enableTestRemote (enableRemote cfg.package.installedTests "fwupd-tests") ); in { |