···1616 generate = name: value:
1717 let mkParam = k: v:
1818 if v == null then []
1919- else if isBool v then if v then [("--"+k)] else []
1919+ else if isBool v then optional v ("--"+k)
2020 else [("--"+k) v];
2121 mkParams = k: v: map (mkParam k) (if isList v then v else [v]);
2222 in escapeShellArgs (concatLists (concatLists (mapAttrsToList mkParams value)));
+1-1
nixos/modules/services/hardware/fwupd.nix
···5050 # to install it because it would create a cyclic dependency between
5151 # the outputs. We also need to enable the remote,
5252 # which should not be done by default.
5353- if cfg.enableTestRemote then (enableRemote cfg.package.installedTests "fwupd-tests") else {}
5353+ lib.optionalAttrs cfg.enableTestRemote (enableRemote cfg.package.installedTests "fwupd-tests")
5454 );
55555656in {
···305305306306 # If you really have to access root via FTP use mkOverride or userlistDeny
307307 # = false and whitelist root
308308- services.vsftpd.userlist = if cfg.userlistDeny then ["root"] else [];
308308+ services.vsftpd.userlist = optional cfg.userlistDeny "root";
309309310310 systemd = {
311311 tmpfiles.rules = optional cfg.anonymousUser