mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
nixos/dovecot: use lib.boolToYesNo
This commit is contained in:
@@ -90,8 +90,6 @@ let
|
||||
}) cfg.sieve.pipeBins
|
||||
);
|
||||
|
||||
yesOrNo = v: if v then "yes" else "no";
|
||||
|
||||
toOption =
|
||||
i: n: v:
|
||||
"${i}${toString n} = ${v}";
|
||||
@@ -103,7 +101,7 @@ let
|
||||
if isInt v then
|
||||
toString v
|
||||
else if isBool v then
|
||||
yesOrNo v
|
||||
lib.boolToYesNo v
|
||||
else if isString v then
|
||||
v
|
||||
else if isPath v || isDerivation v then
|
||||
|
||||
Reference in New Issue
Block a user