fix that mouse and keyboard power off during normal use

This commit is contained in:
Christoph Cullmann 2024-08-28 21:20:59 +02:00
parent 47842e2bbb
commit 4289430989
No known key found for this signature in database

View file

@ -27,8 +27,14 @@ in
# use the latest kernel
boot.kernelPackages = pkgs.linuxPackages_latest;
# don't check for split locks, for KVM and Co.
boot.kernelParams = [ "split_lock_detect=off" ];
# my kernel parameters
boot.kernelParams = [
# don't check for split locks, for KVM and Co.
"split_lock_detect=off"
# avoid that my USB stuff sleeps
"usbcore.autosuspend=-1"
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
@ -247,11 +253,6 @@ in
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
# save power
powerManagement.enable = true;
powerManagement.cpuFreqGovernor = "ondemand";
powerManagement.powertop.enable = true;
# allow unfree packages
nixpkgs.config.allowUnfree = true;