From 6bf7a5f97a01fded1ce1b5fd3c7717578e12abb9 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 4 Nov 2025 23:45:45 +0000 Subject: [PATCH] Fix evaluation warning Fixes: > The option services.logind.lidSwitchExternalPower' defined in /nix/store/xppb9ysh004vwf838dkmvsk3r033nl00-source/hosts/nixedo/configuration.nix' has been renamed to services.logind.settings.Login.HandleLidSwitchExternalPower'. Signed-off-by: Oliver Davies --- hosts/nixedo/configuration.nix | 9 +++++++-- hosts/t480/configuration.nix | 6 ++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hosts/nixedo/configuration.nix b/hosts/nixedo/configuration.nix index d55a2224..abf3ab99 100644 --- a/hosts/nixedo/configuration.nix +++ b/hosts/nixedo/configuration.nix @@ -2,7 +2,12 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ inputs, lib, pkgs, ... }: +{ + inputs, + lib, + pkgs, + ... +}: { imports = [ @@ -19,7 +24,7 @@ ../../users/opdavies.nix ]; - services.logind.lidSwitchExternalPower = "ignore"; + services.logind.settings.Login.HandleLidSwitchExternalPower = "ignore"; boot.loader = { efi.canTouchEfiVariables = true; diff --git a/hosts/t480/configuration.nix b/hosts/t480/configuration.nix index a53f6e21..10a47b94 100644 --- a/hosts/t480/configuration.nix +++ b/hosts/t480/configuration.nix @@ -94,4 +94,10 @@ xsel yt-dlp ]; + + services.logind.settings.Login = { + HandleLidSwitch = "supend-then-hibernate"; + HandleLidSwitchExternalPower = "ignore"; + HandlePowerKey = "supend-then-hibernate"; + }; }