From b44afdaaa178ed79bcdd6617ba8dc392feedd920 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 18 Apr 2023 18:37:01 +0200 Subject: [PATCH] Move boot config to common/boot.nix --- common/boot.nix | 5 +++++ xeon07/hardware-configuration.nix | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/boot.nix b/common/boot.nix index bd8f5a4..cf85951 100644 --- a/common/boot.nix +++ b/common/boot.nix @@ -26,4 +26,9 @@ HWLAT_TRACER = yes; }; }; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "nvme" "usbhid" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; } diff --git a/xeon07/hardware-configuration.nix b/xeon07/hardware-configuration.nix index 7c7a591..7e4112c 100644 --- a/xeon07/hardware-configuration.nix +++ b/xeon07/hardware-configuration.nix @@ -8,11 +8,6 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "nvme" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;