MyNixOS website logo
option

services.logind.lidSwitchDocked

Specifies what to do when the laptop lid is closed and another screen is added.

Declarations
Type
one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock"
Default
"ignore"
Example
"suspend"