fix deprecate warnings

This commit is contained in:
Yan Lin 2025-12-07 21:34:36 +01:00
parent 52d820acef
commit 233837b347

View file

@ -101,14 +101,14 @@
};
# Disable all suspend/sleep for headless server operation
services.logind = {
lidSwitch = "ignore";
lidSwitchExternalPower = "ignore";
lidSwitchDocked = "ignore";
powerKey = "ignore";
suspendKey = "ignore";
hibernateKey = "ignore";
settings.Login.IdleAction = "ignore";
services.logind.settings.Login = {
HandleLidSwitch = "ignore";
HandleLidSwitchExternalPower = "ignore";
HandleLidSwitchDocked = "ignore";
HandlePowerKey = "ignore";
HandleSuspendKey = "ignore";
HandleHibernateKey = "ignore";
IdleAction = "ignore";
};
# Thermal management