Fix evaluation warning
All checks were successful
/ check (push) Successful in 41s

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 <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-11-04 23:45:45 +00:00
parent a7ef7eeb90
commit 6bf7a5f97a
2 changed files with 13 additions and 2 deletions

View file

@ -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;

View file

@ -94,4 +94,10 @@
xsel
yt-dlp
];
services.logind.settings.Login = {
HandleLidSwitch = "supend-then-hibernate";
HandleLidSwitchExternalPower = "ignore";
HandlePowerKey = "supend-then-hibernate";
};
}