all repos — nixfiles @ 3c9fdec17af0aca598d6de092b9bf24518e18978

System and user configuration, managed by nix and home-manager

Use optimised kernel and CPU governor on PCs (laptops and desktops)

Alan Pearce
commit

3c9fdec17af0aca598d6de092b9bf24518e18978

parent

d48fe99a36fc5eae24949a451aa4534c1d883eea

M system/prefect.nixsystem/prefect.nix
@@ -13,6 +13,7 @@ ./settings/configuration/nix.nix
./settings/configuration/user.nix ./settings/hardware/audio.nix ./settings/hardware/bare-metal.nix + ./settings/hardware/personal-computer.nix ./settings/hardware/bluetooth.nix ./settings/hardware/nvme-root.nix ./settings/hardware/connman.nix
@@ -79,7 +80,6 @@ ip6tables -A nixos-fw -p tcp --source fd12:d04f:65d:0::/64 -j nixos-fw-accept
ip6tables -A nixos-fw -p udp --source fd12:d04f:65d:0::/64 -j nixos-fw-accept ''; - powerManagement.cpuFreqGovernor = "schedutil"; networking = { hostName = "prefect"; };
M system/settings/hardware/laptop.nixsystem/settings/hardware/laptop.nix
@@ -6,6 +6,7 @@ ./bluetooth.nix
./bluetooth-audio.nix ./connman.nix ./iwd.nix + ./personal-computer.nix ../user-interface.nix ];
A system/settings/hardware/personal-computer.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, lib, ... }: + +{ + boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_zen; + powerManagement.cpuFreqGovernor = "schedutil"; +}