From a1c214ff6ba18b38ac2fbbf97c65b16f98c2fa7c Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sat, 11 Nov 2023 23:21:03 +0100 Subject: [PATCH] nixos-hardware: mu --- hosts/mu/hardware.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/hosts/mu/hardware.nix b/hosts/mu/hardware.nix index 3a5f029..501e6d3 100644 --- a/hosts/mu/hardware.nix +++ b/hosts/mu/hardware.nix @@ -1,8 +1,13 @@ -{ config, lib, pkgs, modulesPath, ... }: { - imports = - [ - (modulesPath + "/installer/scan/not-detected.nix") - ]; +{ config, lib, pkgs, modulesPath, nixos-hardware, ... }: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + nixos-hardware.nixosModules.common-cpu-intel + nixos-hardware.nixosModules.common-gpu-intel + nixos-hardware.nixosModules.common-pc + nixos-hardware.nixosModules.common-pc-laptop + nixos-hardware.nixosModules.common-pc-laptop-acpi_call + nixos-hardware.nixosModules.common-pc-ssd + ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" "sdhci_pci" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; @@ -37,5 +42,4 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }