diff options
author | Alan Pearce | 2021-01-16 20:59:20 +0100 |
---|---|---|
committer | Alan Pearce | 2021-01-16 20:59:20 +0100 |
commit | 3c9fdec17af0aca598d6de092b9bf24518e18978 (patch) | |
tree | 2337c6fdc66069eb7a2738c4843acf6069ac5e14 /system/settings | |
parent | d48fe99a36fc5eae24949a451aa4534c1d883eea (diff) | |
download | nixfiles-3c9fdec17af0aca598d6de092b9bf24518e18978.tar.lz nixfiles-3c9fdec17af0aca598d6de092b9bf24518e18978.tar.zst nixfiles-3c9fdec17af0aca598d6de092b9bf24518e18978.zip |
Use optimised kernel and CPU governor on PCs (laptops and desktops)
Diffstat (limited to 'system/settings')
-rw-r--r-- | system/settings/hardware/laptop.nix | 1 | ||||
-rw-r--r-- | system/settings/hardware/personal-computer.nix | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/system/settings/hardware/laptop.nix b/system/settings/hardware/laptop.nix index 9f752070..946dbda7 100644 --- a/system/settings/hardware/laptop.nix +++ b/system/settings/hardware/laptop.nix @@ -6,6 +6,7 @@ ./bluetooth-audio.nix ./connman.nix ./iwd.nix + ./personal-computer.nix ../user-interface.nix ]; diff --git a/system/settings/hardware/personal-computer.nix b/system/settings/hardware/personal-computer.nix new file mode 100644 index 00000000..e8574b3d --- /dev/null +++ b/system/settings/hardware/personal-computer.nix @@ -0,0 +1,6 @@ +{ config, pkgs, lib, ... }: + +{ + boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_zen; + powerManagement.cpuFreqGovernor = "schedutil"; +} |