Logind: Disable power key globally.
This commit is contained in:
parent
d97b989099
commit
79951acb4b
|
@ -1,6 +1,4 @@
|
|||
{ ... }: {
|
||||
services.logind = {
|
||||
powerKey = "ignore";
|
||||
lidSwitch = "ignore";
|
||||
};
|
||||
# Don't suspend on lid closed.
|
||||
services.logind.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