Odin: better logind

This commit is contained in:
Filippo Berto 2024-04-02 15:41:58 +02:00
parent 46dc6ffe9d
commit 038cf6c333
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

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