fix: play along with deprecation of services.logind.extraConfig

This commit is contained in:
Ahwx 2025-09-11 16:13:22 +02:00
parent 3811e2fae0
commit 6461bc5f27

View file

@ -3,10 +3,9 @@
services = {
fstrim.enable = true;
};
services.logind.extraConfig = ''
# dont shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
services.logind.settings.Login = {
HandlePowerKey = "ignore"; # dont shutdown when power button is short-pressed
};
# To prevent getting stuck at shutdown.
# systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Deprecated now