summaryrefslogtreecommitdiff
path: root/hel.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-11-12 15:46:04 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-11-12 15:46:04 +0100
commitfdcc0dbadadddddaaf2bf6b63f706dd2b6d95db3 (patch)
treea1e2f04d8e53ae6313ef6da0b91323c44a86de65 /hel.nix
parentba5379041a171f671f8bff36be1cf449fbfc02b4 (diff)
downloadnixos-fdcc0dbadadddddaaf2bf6b63f706dd2b6d95db3.tar
nixos-fdcc0dbadadddddaaf2bf6b63f706dd2b6d95db3.tar.gz
nixos-fdcc0dbadadddddaaf2bf6b63f706dd2b6d95db3.tar.bz2
nixos-fdcc0dbadadddddaaf2bf6b63f706dd2b6d95db3.tar.xz
nixos-fdcc0dbadadddddaaf2bf6b63f706dd2b6d95db3.zip
Revert "Make autorandr system wide and automatic"
This reverts commit 37b87bd5a4b85b154e298a9c083bb7eaee10065e.
Diffstat (limited to 'hel.nix')
-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"