nixos/cloudflare-ddns: use lib.boolToString

This commit is contained in:
Ben Siraphob
2026-09-18 12:07:30 -07:00
parent e5ccacd0f5
commit edb1620b2b

View File

@@ -7,7 +7,6 @@
let
cfg = config.services.cloudflare-ddns;
boolToString = b: if b then "true" else "false";
formatList = l: lib.concatStringsSep "," l;
in
{
@@ -265,7 +264,7 @@ in
let
toEnv = name: value: "${name}=\"${toString value}\"";
toEnvList = name: value: "${name}=\"${formatList value}\"";
toEnvBool = name: value: "${name}=\"${boolToString value}\"";
toEnvBool = name: value: "${name}=\"${lib.boolToString value}\"";
toEnvMaybe =
pred: name: value:
lib.optionalString pred (toEnv name value);