mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 12:40:13 +00:00
fix: power button immediately shuts down pc
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user