aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-06-04 20:34:50 +0200
committerKatharina Fey <kookie@spacekookie.de>2020-06-04 20:34:50 +0200
commit8e9d8d8b70f2a5515ffa4b2dad18cf5783ab1e4e (patch)
treec2f70049be19f757f1ae6b2b80c3bfe70a47612c /nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix
parent240cb27216dbb4203e2d470d78888b5cf82809ac (diff)
parent467ce5a9f45aaf96110b41eb863a56866e1c2c3c (diff)
Merge commit '467ce5a9f45aaf96110b41eb863a56866e1c2c3c'
Diffstat (limited to 'nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix')
-rw-r--r--nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix b/nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix
index de0f11595a9..a7dea95056a 100644
--- a/nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix
+++ b/nixpkgs/nixos/modules/services/networking/wpa_supplicant.nix
@@ -253,12 +253,12 @@ in {
};
powerManagement.resumeCommands = ''
- ${config.systemd.package}/bin/systemctl try-restart wpa_supplicant
+ /run/current-system/systemd/bin/systemctl try-restart wpa_supplicant
'';
# Restart wpa_supplicant when a wlan device appears or disappears.
services.udev.extraRules = ''
- ACTION=="add|remove", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", RUN+="${config.systemd.package}/bin/systemctl try-restart wpa_supplicant.service"
+ ACTION=="add|remove", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", RUN+="/run/current-system/systemd/bin/systemctl try-restart wpa_supplicant.service"
'';
};