laptop: configure lid power actions
Alan Pearce alan@alanpearce.eu
Fri, 24 Jan 2020 14:28:41 +0100
1 files changed, 8 insertions(+), 4 deletions(-)
M system/settings/hardware/laptop.nix → system/settings/hardware/laptop.nix
@@ -41,10 +41,14 @@ source = ../../autorandr; target = "xdg/autorandr"; }; - services.logind.extraConfig = '' - IdleAction=suspend - IdleActionSec=600 - ''; + services.logind = { + lidSwitch = "suspend"; + lidSwitchExternalPower = "ignore"; + extraConfig = '' + IdleAction=suspend + IdleActionSec=600 + ''; + }; services.acpid = { enable = true;