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 = { services = {
fstrim.enable = true; fstrim.enable = true;
}; };
services.logind.extraConfig = '' services.logind.settings.Login = {
# dont shutdown when power button is short-pressed HandlePowerKey = "ignore"; # dont shutdown when power button is short-pressed
HandlePowerKey=ignore };
'';
# To prevent getting stuck at shutdown. # To prevent getting stuck at shutdown.
# systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Deprecated now # systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Deprecated now