From 233837b347168ab9a296c538e4a6b967eadf1016 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 7 Dec 2025 21:34:36 +0100 Subject: [PATCH] fix deprecate warnings --- hosts/nixos/thinkpad/system.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hosts/nixos/thinkpad/system.nix b/hosts/nixos/thinkpad/system.nix index 38860f9..0c700fc 100644 --- a/hosts/nixos/thinkpad/system.nix +++ b/hosts/nixos/thinkpad/system.nix @@ -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