diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 21:20:59 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-28 21:20:59 +0200 |
commit | 42894309895d6830e21e8e2d76f24084a66ed1f3 (patch) | |
tree | 6a748ed0a73608c1e36cc541bf9b3a93d48e2329 /share/common.nix | |
parent | 47842e2bbbe2afdce226d6ff37895357c8f65d77 (diff) |
fix that mouse and keyboard power off during normal use
Diffstat (limited to 'share/common.nix')
-rw-r--r-- | share/common.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/share/common.nix b/share/common.nix index f2310c1..422e674 100644 --- a/share/common.nix +++ b/share/common.nix @@ -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; |