Specify a directory, I guess
This commit is contained in:
parent
82ed2df2b3
commit
f44d04e16b
4
dkim.nix
4
dkim.nix
|
@ -25,11 +25,11 @@ let
|
|||
concatStringsSep "\n" (map (ensureDomainDkimCert keyDir) domains);
|
||||
|
||||
makeKeyTable = keyDir: domains:
|
||||
pkgs.writeTextDir "key.table" (concatStringsSep "\n"
|
||||
pkgs.writeTextDir "dkim-tables/key.table" (concatStringsSep "\n"
|
||||
(map (dom: "${dom}:mail:${keyDir}/${dom}.mail.key") domains));
|
||||
|
||||
makeSigningTable = domains:
|
||||
pkgs.writeText "signing.table"
|
||||
pkgs.writeText "dkim-tables/signing.table"
|
||||
(concatStringsSep "\n" (map (dom: "${dom} ${dom}") domains));
|
||||
|
||||
keyTable = makeKeyTable cfg.state-directory cfg.domains;
|
||||
|
|
Loading…
Reference in New Issue