summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-27 18:17:59 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-27 18:17:59 +0200
commit2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e (patch)
tree0a9bcfd3fdbac382fd959fe55c8893e94a17342c /hel.nix
parent7c8e802090c83376a8d3095492c64274835d3af1 (diff)
downloadnixos-2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e.tar
nixos-2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e.tar.gz
nixos-2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e.tar.bz2
nixos-2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e.tar.xz
nixos-2c7ae60d18bcae340b09c2754eef6ad5d86b6d9e.zip
¬
Diffstat (limited to 'hel.nix')
-rw-r--r--hel.nix4
1 files 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 @@
493 }; 493 };
494 494
495 services.udev.extraRules = with pkgs; '' 495 services.udev.extraRules = with pkgs; ''
496 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block start prevent-suspend.service" 496 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block stop prevent-suspend.service"
497 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block stop prevent-suspend.service" 497 SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start prevent-suspend.service"
498 ''; 498 '';
499} 499}
500 500