Set lid switch for power.
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
./programs/sof-firmware.nix
|
./programs/sof-firmware.nix
|
||||||
# Not working yet.
|
# Not working yet.
|
||||||
./services/fprintd.nix
|
./services/fprintd.nix
|
||||||
|
./services/lidswitch.nix
|
||||||
./services/touchpad.nix
|
./services/touchpad.nix
|
||||||
./system/bootloader.nix
|
./system/bootloader.nix
|
||||||
./system/filesystems.nix
|
./system/filesystems.nix
|
||||||
|
|||||||
4
nodes/hosts/nixwork/services/lidswitch.nix
Normal file
4
nodes/hosts/nixwork/services/lidswitch.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{ pkgs, ...}: {
|
||||||
|
services.logind.lidSwitch = "poweroff";
|
||||||
|
services.logind.lidSwitchExternalPower = "lock";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user