From 7c8e802090c83376a8d3095492c64274835d3af1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 27 Mar 2017 18:16:59 +0200 Subject: Fix paths --- hel.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hel.nix') diff --git a/hel.nix b/hel.nix index 1bc07b54..dcd97ce5 100644 --- a/hel.nix +++ b/hel.nix @@ -492,10 +492,9 @@ }; }; - services.udev.path = with pkgs; [ systemd ]; - services.udev.extraRules = '' - SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="systemctl --no-block start prevent-suspend.service" - SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="systemctl --no-block stop prevent-suspend.service" + services.udev.extraRules = with pkgs; '' + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block start prevent-suspend.service" + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block stop prevent-suspend.service" ''; } -- cgit v1.2.3