nix-git/modules/lid-switch-handling.nix

11 lines
291 B
Nix
Raw Normal View History

2023-09-16 17:23:06 +02:00
{ config, pkgs, ... }:
{
# Don't suspend if laptop lid is closed while plugged in.
# https://unix.stackexchange.com/a/307498
#
# services.logind.lidSwitch = "suspend";
services.logind.lidSwitchExternalPower = "ignore";
#services.logind.lidSwitchDocked = "ignore";
}