From 2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 27 Mar 2017 18:17:59 +0200 Subject: =?UTF-8?q?=C2=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hel.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hel.nix b/hel.nix index dcd97ce5..0bce9f83 100644 --- a/hel.nix +++ b/hel.nix @@ -493,8 +493,8 @@ }; 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" + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block stop prevent-suspend.service" + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start prevent-suspend.service" ''; } -- cgit v1.2.3