diff options
author | Florian Klink <flokli@flokli.de> | 2020-05-21 10:30:21 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-05-21 10:30:21 +0200 |
commit | b0222a5e9c67b97ff73af80ca84ca94bd11e6471 (patch) | |
tree | eed1da1995639ca423878013f2fcf5f9a29ee19f | |
parent | 73392b748feec1640be75d359417890628c834a2 (diff) | |
download | nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.tar nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.tar.gz nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.tar.bz2 nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.tar.lz nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.tar.xz nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.tar.zst nixpkgs-b0222a5e9c67b97ff73af80ca84ca94bd11e6471.zip |
nixos/dhcpcd: always run systemctl of the currently running systemd
-rw-r--r-- | nixos/modules/services/networking/dhcpcd.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index c0619211c2f..0507b739d49 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -81,7 +81,7 @@ let # anything ever again ("couldn't resolve ..., giving up on # it"), so we silently lose time synchronisation. This also # applies to openntpd. - ${config.systemd.package}/bin/systemctl try-reload-or-restart ntpd.service openntpd.service chronyd.service || true + /run/current-system/systemd/bin/systemctl try-reload-or-restart ntpd.service openntpd.service chronyd.service || true fi ${cfg.runHook} @@ -217,7 +217,7 @@ in powerManagement.resumeCommands = mkIf config.systemd.services.dhcpcd.enable '' # Tell dhcpcd to rebind its interfaces if it's running. - ${config.systemd.package}/bin/systemctl reload dhcpcd.service + /run/current-system/systemd/bin/systemctl reload dhcpcd.service ''; }; |