diff --git a/config/default.nix b/config/default.nix index be83f5ee..20c53056 100644 --- a/config/default.nix +++ b/config/default.nix @@ -9,4 +9,5 @@ ./i18n.nix ]; boot.initrd.systemd.enable = true; + hardware.enableRedistributableFirmware = true; } diff --git a/machine/pc-installer/default.nix b/machine/pc-installer/default.nix index 73938e7f..1cb65ae7 100644 --- a/machine/pc-installer/default.nix +++ b/machine/pc-installer/default.nix @@ -8,6 +8,7 @@ "${nixos-config}/config" ./disko.nix ./grub.nix + ./hardware.nix ]; system.stateVersion = config.system.nixos.version; specialisation.graphical = { diff --git a/machine/pc-installer/hardware.nix b/machine/pc-installer/hardware.nix new file mode 100644 index 00000000..e5f87e0b --- /dev/null +++ b/machine/pc-installer/hardware.nix @@ -0,0 +1,5 @@ +{...}: { + boot.initrd.availableKernelModules = ["nvme" "ahci" "xhci_pci" "usbhid" "uas" "sd_mod"]; + hardware.cpu.amd.updateMicrocode = true; + hardware.cpu.intel.updateMicrocode = true; +}