about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-22 17:03:24 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:31:32 +0200
commit835f24ef5530cb84aaeef9a8a2e3f9537a8c4016 (patch)
tree99087f80d58c2cb7d42edf8d62db66dfa8751fe2
parentFix(bootstrap/setup): Fix host option generation (diff)
downloadnixos-config-835f24ef5530cb84aaeef9a8a2e3f9537a8c4016.tar.gz
nixos-config-835f24ef5530cb84aaeef9a8a2e3f9537a8c4016.zip
Fix(hosts/apzu): Add correct hardware modules
-rw-r--r--hosts/apzu/hardware/cpu.nix4
-rw-r--r--hosts/apzu/hardware/default.nix12
2 files changed, 5 insertions, 11 deletions
diff --git a/hosts/apzu/hardware/cpu.nix b/hosts/apzu/hardware/cpu.nix
index 2d7232cd..2969d154 100644
--- a/hosts/apzu/hardware/cpu.nix
+++ b/hosts/apzu/hardware/cpu.nix
@@ -1,4 +1,4 @@
-{config, ...}: {
+{...}: {
   powerManagement.cpuFreqGovernor = "powersave";
-  hardware.cpu.amd.updateMicrocode = true; # Why not?
+  hardware.cpu.intel.updateMicrocode = true; # Why not?
 }
diff --git a/hosts/apzu/hardware/default.nix b/hosts/apzu/hardware/default.nix
index c989ee44..ab25c244 100644
--- a/hosts/apzu/hardware/default.nix
+++ b/hosts/apzu/hardware/default.nix
@@ -1,10 +1,4 @@
-{
-  config,
-  lib,
-  pkgs,
-  modulesPath,
-  ...
-}: {
+{modulesPath, ...}: {
   imports = [
     (modulesPath + "/installer/scan/not-detected.nix") # TODO is this necessary?
     ./cpu.nix
@@ -25,8 +19,8 @@
   };
 
   boot = {
-    kernelModules = ["kvm-amd" "rtw89"];
+    kernelModules = ["kvm-intel" "rtw89"];
 
-    initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
+    initrd.availableKernelModules = ["xhci_pci" "vmd" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
   };
 }