nixos/postfix-tlspol: fix config reload
Since we only pass a symlink to ExecStart we need to pass the backing file as a reload trigger.
This commit is contained in:
parent
df0eb78b31
commit
7874cc6005
@ -19,6 +19,7 @@ let
|
||||
cfg = config.services.postfix-tlspol;
|
||||
|
||||
format = pkgs.formats.yaml_1_2 { };
|
||||
configFile = format.generate "postfix-tlspol.yaml" cfg.settings;
|
||||
in
|
||||
|
||||
{
|
||||
@ -148,8 +149,7 @@ in
|
||||
})
|
||||
|
||||
(mkIf cfg.enable {
|
||||
environment.etc."postfix-tlspol/config.yaml".source =
|
||||
format.generate "postfix-tlspol.yaml" cfg.settings;
|
||||
environment.etc."postfix-tlspol/config.yaml".source = configFile;
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
@ -173,6 +173,8 @@ in
|
||||
description = "Postfix DANE/MTA-STS TLS policy socketmap service";
|
||||
documentation = [ "https://github.com/Zuplu/postfix-tlspol" ];
|
||||
|
||||
reloadTriggers = [ configFile ];
|
||||
|
||||
# https://github.com/Zuplu/postfix-tlspol/blob/main/init/postfix-tlspol.service
|
||||
serviceConfig = {
|
||||
ExecStart = toString [
|
||||
|
Loading…
x
Reference in New Issue
Block a user