diff options
-rw-r--r-- | hel.nix | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -477,6 +477,9 @@ | |||
477 | }; | 477 | }; |
478 | }; | 478 | }; |
479 | 479 | ||
480 | services.udev.packages = with pkgs; [ autorandr ]; | ||
481 | systemd.packages = with pkgs; [ autorandr ]; | ||
482 | |||
480 | services.udev.extraRules = with pkgs; '' | 483 | services.udev.extraRules = with pkgs; '' |
481 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block stop ac-plugged.service" | 484 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="0", RUN+="${systemd}/bin/systemctl --no-block stop ac-plugged.service" |
482 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service" | 485 | SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="1", RUN+="${systemd}/bin/systemctl --no-block start ac-plugged.service" |