mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-30 04:42:04 +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) {
|
||||
|
||||
# Use power button to sleep instead of poweroff
|
||||
services.logind.powerKey = "suspend";
|
||||
services.logind.powerKeyLongPress = "poweroff";
|
||||
|
||||
# Prevent wake from keyboard
|
||||
powerManagement.powerDownCommands = ''
|
||||
set +e
|
||||
|
Loading…
x
Reference in New Issue
Block a user