diff options
| -rw-r--r-- | hel.nix | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
