diff options
author | Alan Pearce | 2019-08-28 16:48:30 +0200 |
---|---|---|
committer | Alan Pearce | 2019-08-28 16:48:30 +0200 |
commit | 66e0fc015b2325ac807747ea6b4c771a05c6ba63 (patch) | |
tree | dc43c4b40691c654fcfe87beb797334dbd0b1992 | |
parent | 1c9f2e4f79c747724ff30da7a7c836ff6c5a8025 (diff) | |
download | nixos-configuration-66e0fc015b2325ac807747ea6b4c771a05c6ba63.tar.lz nixos-configuration-66e0fc015b2325ac807747ea6b4c771a05c6ba63.tar.zst nixos-configuration-66e0fc015b2325ac807747ea6b4c771a05c6ba63.zip |
laptop: run autorandr via acpid on lid events
-rw-r--r-- | modules/hardware/laptop.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/hardware/laptop.nix b/modules/hardware/laptop.nix index a1d27ee..4c76ff6 100644 --- a/modules/hardware/laptop.nix +++ b/modules/hardware/laptop.nix @@ -38,6 +38,13 @@ IdleActionSec=600 ''; + services.acpid = { + enable = true; + lidEventCommands = '' + ${pkgs.autorandr}/bin/autorandr --batch --change + ''; + }; + services.physlock = { enable = true; # Already need to enter disk encryption password |