fix that mouse and keyboard power off during normal use
This commit is contained in:
parent
47842e2bbb
commit
4289430989
|
@ -27,8 +27,14 @@ in
|
|||
# use the latest kernel
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# my kernel parameters
|
||||
boot.kernelParams = [
|
||||
# don't check for split locks, for KVM and Co.
|
||||
boot.kernelParams = [ "split_lock_detect=off" ];
|
||||
"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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue