summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-07-11 10:29:37 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2022-07-11 10:29:37 +0200
commit805fbd610bcba37288db449b365f498935c644c4 (patch)
treeab06361128684e9893d42832b7701479fa2352a4 /modules
parentda7d07b9ecedb3f4806db1fb60b03ef4d6c46931 (diff)
downloadnixos-805fbd610bcba37288db449b365f498935c644c4.tar
nixos-805fbd610bcba37288db449b365f498935c644c4.tar.gz
nixos-805fbd610bcba37288db449b365f498935c644c4.tar.bz2
nixos-805fbd610bcba37288db449b365f498935c644c4.tar.xz
nixos-805fbd610bcba37288db449b365f498935c644c4.zip
...
Diffstat (limited to 'modules')
-rw-r--r--modules/postfix-mta-sts-resolver.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/postfix-mta-sts-resolver.nix b/modules/postfix-mta-sts-resolver.nix
index 52439659..86804758 100644
--- a/modules/postfix-mta-sts-resolver.nix
+++ b/modules/postfix-mta-sts-resolver.nix
@@ -53,12 +53,18 @@ in {
53 after = mkIf cfg.redis [ "redis-postfix-mta-sts-resolver.service" ]; 53 after = mkIf cfg.redis [ "redis-postfix-mta-sts-resolver.service" ];
54 54
55 serviceConfig = { 55 serviceConfig = {
56 Type = "notify";
56 ExecStart = "${pkgs.postfix-mta-sts-resolver}/bin/mta-sts-daemon -v ${cfg.loglevel} -c ${pkgs.writeText "mta-sts-daemon.yml" (generators.toYAML {} cfg.settings)}"; 57 ExecStart = "${pkgs.postfix-mta-sts-resolver}/bin/mta-sts-daemon -v ${cfg.loglevel} -c ${pkgs.writeText "mta-sts-daemon.yml" (generators.toYAML {} cfg.settings)}";
57 SupplementaryGroups = mkIf cfg.redis config.services.redis.servers.postfix-mta-sts-resolver.user; 58 Restart = "always";
59 KillMode = "process";
60 TimeoutStartSec = 10;
61 TimeoutStopSec = 30;
62
58 RuntimeDirectory = "postfix-mta-sts-resolver"; 63 RuntimeDirectory = "postfix-mta-sts-resolver";
59 64
60 User = "postfix-mta-sts-resolver"; 65 User = "postfix-mta-sts-resolver";
61 Group = "postfix-mta-sts-resolver"; 66 Group = "postfix-mta-sts-resolver";
67 SupplementaryGroups = mkIf cfg.redis config.services.redis.servers.postfix-mta-sts-resolver.user;
62 68
63 RemoveIPC = true; 69 RemoveIPC = true;
64 PrivateTmp = true; 70 PrivateTmp = true;