Skip to content

Commit ea462c7

Browse files
committed
nixos/resolvconf: always run systemctl of the currently running systemd
1 parent 783f40b commit ea462c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nixos/modules/config/resolvconf.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let
2121
'' + optionalString config.services.nscd.enable ''
2222
# Invalidate the nscd cache whenever resolv.conf is
2323
# regenerated.
24-
libc_restart='${pkgs.systemd}/bin/systemctl try-restart --no-block nscd.service 2> /dev/null'
24+
libc_restart='/run/current-system/systemd/bin/systemctl try-restart --no-block nscd.service 2> /dev/null'
2525
'' + optionalString (length resolvconfOptions > 0) ''
2626
# Options as described in resolv.conf(5)
2727
resolv_conf_options='${concatStringsSep " " resolvconfOptions}'

0 commit comments

Comments
 (0)