From 038cf6c3332983c13076ed1c934a170353beaba7 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Tue, 2 Apr 2024 15:41:58 +0200 Subject: [PATCH] Odin: better logind --- instances/odin/common_configuration.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/instances/odin/common_configuration.nix b/instances/odin/common_configuration.nix index 580afcc..12a4137 100644 --- a/instances/odin/common_configuration.nix +++ b/instances/odin/common_configuration.nix @@ -11,7 +11,8 @@ # Use the systemd-boot EFI boot loader. boot = { # kernelPackages = pkgs.linuxPackages_latest; - # kernelPackages = pkgs.linuxPackages_6_1; + # kernelPackages = pkgs.linuxPackages_6_7_hardened; + kernelPackages = pkgs.linuxPackages_6_7; kernelParams = [ "acpi_osi=Linux-Dell-Video" ]; initrd.checkJournalingFS = true; # Use same ACPI identifier as Dell Ubuntu loader = { systemd-boot = { enable = true; editor = false; }; efi.canTouchEfiVariables = true; }; @@ -143,10 +144,11 @@ }; # Disable auto handling of power button - logind.extraConfig = '' - HandlePowerKey=ignore - ''; - + logind = { + powerKey = "ignore"; + lidSwitchExternalPower = "ignore"; + lidSwitch = "hibernate"; + }; }; # Set your time zone.