Set lid switch for power.

This commit is contained in:
jay
2025-07-21 16:05:59 -04:00
parent b154fad1a0
commit 4310c9d517
2 changed files with 5 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
./programs/sof-firmware.nix
# Not working yet.
./services/fprintd.nix
./services/lidswitch.nix
./services/touchpad.nix
./system/bootloader.nix
./system/filesystems.nix

View File

@@ -0,0 +1,4 @@
{ pkgs, ...}: {
services.logind.lidSwitch = "poweroff";
services.logind.lidSwitchExternalPower = "lock";
}