Set lid switch for power.
This commit is contained in:
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