summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2021-01-05 12:05:34 +0100
committerAlan Pearce2021-01-05 12:05:34 +0100
commit88c736623897176d77f8d2fb72013e17b5568650 (patch)
tree414da354941c72b4bca03babb33216aacc25cd09 /system
parent3a38529dd013db1eb102db447005f7b85834bbb2 (diff)
downloadnixfiles-88c736623897176d77f8d2fb72013e17b5568650.tar.lz
nixfiles-88c736623897176d77f8d2fb72013e17b5568650.tar.zst
nixfiles-88c736623897176d77f8d2fb72013e17b5568650.zip
prefect: switch to AMD
Diffstat (limited to 'system')
-rw-r--r--system/prefect.nix12
-rw-r--r--system/settings/hardware/bare-metal.nix2
2 files changed, 9 insertions, 5 deletions
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
     <nixos-hardware/common/pc/ssd>
-    <nixos-hardware/common/cpu/intel>
+    <nixos-hardware/common/cpu/amd>
 
     ./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 <nixos-unstable> { 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";
   };
diff --git a/system/settings/hardware/bare-metal.nix b/system/settings/hardware/bare-metal.nix
index 0a61790a..998001c0 100644
--- a/system/settings/hardware/bare-metal.nix
+++ b/system/settings/hardware/bare-metal.nix
@@ -9,8 +9,6 @@
     usbutils
   ];
 
-  hardware.cpu.intel.updateMicrocode = true;
-
   boot.kernel.sysctl = {
     "net.ipv4.tcp_allowed_congestion_control" = "illinois reno lp";
     "net.ipv4.tcp_congestion_control" = "illinois";