nixos/pdns-recursor: reload service on config change

This commit is contained in:
Peter Lehmann 2025-06-07 14:12:59 +02:00
parent b932c31ba4
commit c586196e17

View file

@ -287,7 +287,10 @@ in
systemd.packages = [ pkgs.pdns-recursor ];
systemd.services.pdns-recursor.wantedBy = [ "multi-user.target" ];
systemd.services.pdns-recursor = {
restartTriggers = [ config.environment.etc."/pdns-recursor/recursor.yml".source ];
wantedBy = [ "multi-user.target" ];
};
users.users.pdns-recursor = {
isSystemUser = true;