From fce8cd453ab5e0bd7dd26cb9a35e589c42cab4b2 Mon Sep 17 00:00:00 2001 From: Peter Lehmann Date: Sat, 7 Jun 2025 14:12:59 +0200 Subject: [PATCH] nixos/pdns-recursor: reload service on config change (cherry picked from commit c586196e1739b21b378d27df691a764e7928c06b) --- nixos/modules/services/networking/pdns-recursor.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/pdns-recursor.nix b/nixos/modules/services/networking/pdns-recursor.nix index 42f609128b95..04ae59b7fca9 100644 --- a/nixos/modules/services/networking/pdns-recursor.nix +++ b/nixos/modules/services/networking/pdns-recursor.nix @@ -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;