nixos/pdns-recursor: reload service on config change (#414732)

This commit is contained in:
Michele Guerini Rocco 2025-06-07 23:39:54 +02:00 committed by GitHub
commit 6c226608d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;