fix: power button immediately shuts down pc

This commit is contained in:
Noah Masur 2025-01-19 20:07:12 +00:00
parent c66ca460c0
commit 83f548e95f
No known key found for this signature in database

View File

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