summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/networking/biboumi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/networking/biboumi.nix')
-rw-r--r--nixos/modules/services/networking/biboumi.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/biboumi.nix b/nixos/modules/services/networking/biboumi.nix
index 1428856764e6..d44a46b35a29 100644
--- a/nixos/modules/services/networking/biboumi.nix
+++ b/nixos/modules/services/networking/biboumi.nix
@@ -8,8 +8,7 @@ let
settingsFile = pkgs.writeText "biboumi.cfg" (
generators.toKeyValue {
mkKeyValue = k: v:
- if v == null then ""
- else generators.mkKeyValueDefault {} "=" k v;
+ lib.optionalString (v != null) (generators.mkKeyValueDefault {} "=" k v);
} cfg.settings);
need_CAP_NET_BIND_SERVICE = cfg.settings.identd_port != 0 && cfg.settings.identd_port < 1024;
in