services.logind.lidSwitchExternalPower
Specifies what to do when the laptop lid is closed and the system is on external power. By default use the same action as specified in services.logind.lidSwitch.
- Type
one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "sleep", "lock"- Default
services.logind.lidSwitch- Example
"ignore"- Declared
- <nixpkgs/nixos/modules/system/boot/systemd/logind.nix>