summary refs log tree commit diff
path: root/nixos/modules/config/resolvconf.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-05-21 10:29:22 +0200
committerFlorian Klink <flokli@flokli.de>2020-05-21 10:29:22 +0200
commitea462c742e5faa418650ffa3b49d3319167fe848 (patch)
tree8ec10efb50e0b40a296ca9d9d4b63848516ddf73 /nixos/modules/config/resolvconf.nix
parent783f40bb703220acfe93c9496295958dd1c929fb (diff)
downloadnixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.tar
nixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.tar.gz
nixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.tar.bz2
nixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.tar.lz
nixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.tar.xz
nixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.tar.zst
nixpkgs-ea462c742e5faa418650ffa3b49d3319167fe848.zip
nixos/resolvconf: always run systemctl of the currently running systemd
Diffstat (limited to 'nixos/modules/config/resolvconf.nix')
-rw-r--r--nixos/modules/config/resolvconf.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/config/resolvconf.nix b/nixos/modules/config/resolvconf.nix
index cc202bca6c4..cd0ed491383 100644
--- a/nixos/modules/config/resolvconf.nix
+++ b/nixos/modules/config/resolvconf.nix
@@ -21,7 +21,7 @@ let
     '' + optionalString config.services.nscd.enable ''
       # Invalidate the nscd cache whenever resolv.conf is
       # regenerated.
-      libc_restart='${pkgs.systemd}/bin/systemctl try-restart --no-block nscd.service 2> /dev/null'
+      libc_restart='/run/current-system/systemd/bin/systemctl try-restart --no-block nscd.service 2> /dev/null'
     '' + optionalString (length resolvconfOptions > 0) ''
       # Options as described in resolv.conf(5)
       resolv_conf_options='${concatStringsSep " " resolvconfOptions}'