Maybe we need a newline...

This commit is contained in:
niten 2023-09-28 20:32:35 -07:00
parent efd45dbd0e
commit 4c8a29a0a2
1 changed files with 6 additions and 4 deletions

View File

@ -25,12 +25,14 @@ let
concatStringsSep "\n" (map (ensureDomainDkimCert keyDir) domains);
makeKeyTable = keyDir: domains:
pkgs.writeTextDir "key.table" (concatStringsSep "\n"
(map (dom: "${dom}:mail:${keyDir}/${dom}.mail.key") domains));
pkgs.writeTextDir "key.table" (concatStrings (map (dom: ''
${dom}:mail:${keyDir}/${dom}.mail.key
'') domains));
makeSigningTable = domains:
pkgs.writeTextDir "signing.table"
(concatStringsSep "\n" (map (dom: "${dom} ${dom}") domains));
pkgs.writeTextDir "signing.table" (concatStrings "\n" (map (dom: ''
${dom} ${dom}
'') domains));
keyTableDir = makeKeyTable cfg.state-directory cfg.domains;
signingTableDir = makeSigningTable cfg.domains;