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:
parent
a7ef7eeb90
commit
6bf7a5f97a
2 changed files with 13 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -94,4 +94,10 @@
|
|||
xsel
|
||||
yt-dlp
|
||||
];
|
||||
|
||||
services.logind.settings.Login = {
|
||||
HandleLidSwitch = "supend-then-hibernate";
|
||||
HandleLidSwitchExternalPower = "ignore";
|
||||
HandlePowerKey = "supend-then-hibernate";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue