From 88c736623897176d77f8d2fb72013e17b5568650 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 5 Jan 2021 12:05:34 +0100 Subject: prefect: switch to AMD --- system/prefect.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'system/prefect.nix') diff --git a/system/prefect.nix b/system/prefect.nix index 7c904bab..8543527c 100644 --- a/system/prefect.nix +++ b/system/prefect.nix @@ -3,7 +3,7 @@ { imports = [ ./hardware-configuration.nix - + ./settings/satoshipay.nix ./settings/base.nix @@ -29,6 +29,8 @@ ./settings/programs/tor.nix ./settings/programs/barrier.nix ]; + hardware.cpu.amd.updateMicrocode = true; + services.xserver.screenSection = '' Option "MetaModes" "2560x1440_120 +0+0 { ForceFullCompositionPipeline = On }" Option "AllowIndirectGLXProtocol" "off" @@ -37,6 +39,11 @@ boot.loader.timeout = 3; boot.loader.grub.default = 2; # Default to Windows + boot.kernelPackages = (import { config = config.nixpkgs.config; }).linuxPackages_5_10; + boot.extraModulePackages = with config.boot.kernelPackages; [ + zenpower + ]; + fileSystems."/data" = { label = "Data"; fsType = "ntfs"; @@ -86,8 +93,7 @@ ''; }; - powerManagement.enable = false; - powerManagement.cpuFreqGovernor = "performance"; + powerManagement.cpuFreqGovernor = "schedutil"; networking = { hostName = "prefect"; }; -- cgit 1.4.1