laptop: run autorandr via acpid on lid events
1 file changed, 7 insertions(+), 0 deletions(-)
jump to
M modules/hardware/laptop.nix → modules/hardware/laptop.nix
@@ -38,6 +38,13 @@ IdleAction=suspend IdleActionSec=600 ''; + services.acpid = { + enable = true; + lidEventCommands = '' + ${pkgs.autorandr}/bin/autorandr --batch --change + ''; + }; + services.physlock = { enable = true; # Already need to enter disk encryption password