Make it a list, then concat

This commit is contained in:
niten 2023-09-25 10:03:24 -07:00
parent 06b7134a00
commit 333fed167f
1 changed files with 2 additions and 2 deletions

View File

@ -459,8 +459,8 @@ in {
lmtp.args = [ "flags=DO" ];
policy-spf = let
policydSpfConfig = concatStringsSep "\n"
(cfg.policy-spf.extra-config
+ (lib.optionalString cfg.debug "debugLevel = 4"));
([ cfg.policy-spf.extra-config ]
++ (lib.optional cfg.debug "debugLevel = 4"));
in {
type = "unix";
privileged = true;