about summary refs log tree commit diff
path: root/nixos/modules/services/networking/nsd.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-05-21 10:30:40 +0200
committerFlorian Klink <flokli@flokli.de>2020-05-21 10:30:40 +0200
commit52e104cfdfc75148bb7461cf2e3b58627896e2aa (patch)
tree15cdfa37e4b0b9701a10c0fbf6c333f7e8a5746a /nixos/modules/services/networking/nsd.nix
parentb0222a5e9c67b97ff73af80ca84ca94bd11e6471 (diff)
nixos/nsd: always run systemctl of the currently running systemd
Diffstat (limited to 'nixos/modules/services/networking/nsd.nix')
-rw-r--r--nixos/modules/services/networking/nsd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/nsd.nix b/nixos/modules/services/networking/nsd.nix
index 429580e5c6c48..6e3eed0c55700 100644
--- a/nixos/modules/services/networking/nsd.nix
+++ b/nixos/modules/services/networking/nsd.nix
@@ -252,7 +252,7 @@ let
           Use imports or pkgs.lib.readFile if you don't want this data in your config file.
         '';
       };
-      
+
       dnssec = mkEnableOption "DNSSEC";
 
       dnssecPolicy = {
@@ -970,7 +970,7 @@ in
       script = signZones;
 
       postStop = ''
-        ${pkgs.systemd}/bin/systemctl kill -s SIGHUP nsd.service
+        /run/current-system/systemd/bin/systemctl kill -s SIGHUP nsd.service
       '';
     };