Logind: Disable power key globally.
This commit is contained in:
parent
d97b989099
commit
79951acb4b
|
@ -1,6 +1,4 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
services.logind = {
|
# Don't suspend on lid closed.
|
||||||
powerKey = "ignore";
|
services.logind.lidSwitch = "ignore";
|
||||||
lidSwitch = "ignore";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
4
system/Logind.nix
Normal file
4
system/Logind.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{ ... }: {
|
||||||
|
# Disable the power key.
|
||||||
|
services.logind.powerKey = "ignore";
|
||||||
|
}
|
Loading…
Reference in a new issue