From e78d5aacf559e35cfd7f99bdfa6be5c5d6b36517 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 9 Sep 2025 15:03:08 +0000 Subject: [PATCH] Add missing new corp hardware change Missed from a previous commit --- host/corp/hardware-configuration.nix | 24 ++++++++++++++------ secrets/{matrix.yaml => matrix-synapse.yaml} | 0 2 files changed, 17 insertions(+), 7 deletions(-) rename secrets/{matrix.yaml => matrix-synapse.yaml} (100%) diff --git a/host/corp/hardware-configuration.nix b/host/corp/hardware-configuration.nix index d634744..e6506b9 100644 --- a/host/corp/hardware-configuration.nix +++ b/host/corp/hardware-configuration.nix @@ -1,9 +1,19 @@ -{ modulesPath, ... }: +{ config, lib, modulesPath, ... }: { - imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.loader.grub.device = "/dev/vda"; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; - boot.initrd.kernelModules = [ "nvme" ]; - fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; - + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + (modulesPath + "/profiles/qemu-guest.nix") + ./disk-config.nix + ]; + + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + }; + boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "xhci_pci" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/secrets/matrix.yaml b/secrets/matrix-synapse.yaml similarity index 100% rename from secrets/matrix.yaml rename to secrets/matrix-synapse.yaml