nixos/postfix-tlspol: fix default settings and config reload

Reloading was insufficient for changing the dns resolver address, so we
make config changes a restart trigger instead.
This commit is contained in:
Martin Weinelt
2025-07-10 01:56:34 +02:00
parent abb09fa0f6
commit e57363be15

View File

@@ -90,7 +90,7 @@ in
};
dns = {
server = mkOption {
address = mkOption {
type = types.str;
default = "127.0.0.1:53";
description = ''
@@ -173,7 +173,7 @@ in
description = "Postfix DANE/MTA-STS TLS policy socketmap service";
documentation = [ "https://github.com/Zuplu/postfix-tlspol" ];
reloadTriggers = [ configFile ];
restartTriggers = [ configFile ];
# https://github.com/Zuplu/postfix-tlspol/blob/main/init/postfix-tlspol.service
serviceConfig = {