nixos/pdns-recursor: reload service on config change

(cherry picked from commit c586196e17)
This commit is contained in:
Peter Lehmann 2025-06-07 14:12:59 +02:00 committed by github-actions[bot]
parent 2b41bf0585
commit fce8cd453a

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;