mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-24 22:29:33 +01:00
11 lines
289 B
Nix
11 lines
289 B
Nix
{ 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 = "lock";
|
|
#services.logind.lidSwitchDocked = "ignore";
|
|
}
|