mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-30 22:12:02 +00:00
fix: power button immediately shuts down pc
This commit is contained in:
parent
c66ca460c0
commit
83f548e95f
@ -8,6 +8,10 @@
|
|||||||
|
|
||||||
config = lib.mkIf (config.physical && !config.server) {
|
config = lib.mkIf (config.physical && !config.server) {
|
||||||
|
|
||||||
|
# Use power button to sleep instead of poweroff
|
||||||
|
services.logind.powerKey = "suspend";
|
||||||
|
services.logind.powerKeyLongPress = "poweroff";
|
||||||
|
|
||||||
# Prevent wake from keyboard
|
# Prevent wake from keyboard
|
||||||
powerManagement.powerDownCommands = ''
|
powerManagement.powerDownCommands = ''
|
||||||
set +e
|
set +e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user