mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
nixos/cloudflare-ddns: use lib.boolToString
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user