From 3c9fdec17af0aca598d6de092b9bf24518e18978 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 16 Jan 2021 20:59:20 +0100 Subject: Use optimised kernel and CPU governor on PCs (laptops and desktops) --- system/settings/hardware/laptop.nix | 1 + system/settings/hardware/personal-computer.nix | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 system/settings/hardware/personal-computer.nix (limited to 'system/settings') 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"; +} -- cgit 1.4.1