diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-27 18:16:59 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-27 18:16:59 +0200 |
commit | 7c8e802090c83376a8d3095492c64274835d3af1 (patch) | |
tree | f320ae88945bde5c1a1f361ecbfd15bd7489a943 /hel.nix | |
parent | 87c41a665520e530dec6017e017e6b9c500d734c (diff) | |
download | nixos-7c8e802090c83376a8d3095492c64274835d3af1.tar nixos-7c8e802090c83376a8d3095492c64274835d3af1.tar.gz nixos-7c8e802090c83376a8d3095492c64274835d3af1.tar.bz2 nixos-7c8e802090c83376a8d3095492c64274835d3af1.tar.xz nixos-7c8e802090c83376a8d3095492c64274835d3af1.zip |
Fix paths
Diffstat (limited to 'hel.nix')
-rw-r--r-- | hel.nix | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -492,10 +492,9 @@ | |||
492 | }; | 492 | }; |
493 | }; | 493 | }; |
494 | 494 | ||
495 | services.udev.path = with pkgs; [ systemd ]; | 495 | services.udev.extraRules = with pkgs; '' |
496 | services.udev.extraRules = '' | 496 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block start prevent-suspend.service" |
497 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="systemctl --no-block start prevent-suspend.service" | 497 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block stop prevent-suspend.service" |
498 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="systemctl --no-block stop prevent-suspend.service" | ||
499 | ''; | 498 | ''; |
500 | } | 499 | } |
501 | 500 | ||