Logind: Disable power key globally.

This commit is contained in:
Dmitry Voronin 2024-11-17 23:24:48 +03:00
parent d97b989099
commit 79951acb4b
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 6 additions and 4 deletions

View file

@ -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
View file

@ -0,0 +1,4 @@
{ ... }: {
# Disable the power key.
services.logind.powerKey = "ignore";
}