summaryrefslogtreecommitdiff
path: root/sys/mail/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-07-27 16:26:07 -0600
committerAlejandro Soto <alejandro@34project.org>2024-07-27 20:10:01 -0600
commitb63de52f9239a9b91db4ad222945c307158bbac2 (patch)
tree1d36de0de3600e6dd0877eaf63ba518b48139833 /sys/mail/default.nix
parent0fa5efb1ccc638652c829bebd75b774ccd6025b7 (diff)
sys/env, sys/pki: generate full list of certs by path
Diffstat (limited to 'sys/mail/default.nix')
-rw-r--r--sys/mail/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/mail/default.nix b/sys/mail/default.nix
index 0a888e8..6c1b610 100644
--- a/sys/mail/default.nix
+++ b/sys/mail/default.nix
@@ -92,11 +92,9 @@ in
certLogins =
pkgs.writeText "cert-logins"
- (concatStrings (flatten (mapAttrsToList
- (uuid: names: map
- (addr: ''
- ${uuid}.mail-client@nodomain,${addr}:::::::user=${names.canonical}
- '')
+ (concatLines (flatten (mapAttrsToList
+ (certPath: names: map
+ (addr: "${config.local.pki.byPath.${certPath}.commonName}@nodomain,${addr}:::::::user=${names.canonical}")
names.logins)
(listToAttrs (localCerts ++ vmailCerts)))));