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