X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fmail%2Fopensmtpd.nix;fp=modules%2Fprivate%2Fmail%2Fopensmtpd.nix;h=e05bba98a3cf458652ef23ebcbd299675d361686;hp=a7be066f4f95bf780501fab39f53250dc84d96e3;hb=4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0;hpb=da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 diff --git a/modules/private/mail/opensmtpd.nix b/modules/private/mail/opensmtpd.nix index a7be066..e05bba9 100644 --- a/modules/private/mail/opensmtpd.nix +++ b/modules/private/mail/opensmtpd.nix @@ -1,17 +1,14 @@ { lib, pkgs, config, name, ... }: { config = lib.mkIf config.myServices.mailRelay.enable { - secrets.keys = [ - { - dest = "opensmtpd/creds"; - user = "smtpd"; - group = "smtpd"; - permissions = "0400"; - text = '' - eldiron ${name}:${config.hostEnv.ldap.password} - ''; - } - ]; + secrets.keys."opensmtpd/creds" = { + user = "smtpd"; + group = "smtpd"; + permissions = "0400"; + text = '' + eldiron ${name}:${config.hostEnv.ldap.password} + ''; + }; users.users.smtpd.extraGroups = [ "keys" ]; services.opensmtpd = { enable = true;