# Adapted from the output of `nixos-generate-config`, run from a live GUI # ISO boot on the actual gui-host hardware (AMD CPU). fileSystems and # swapDevices are deliberately omitted -- the live ISO had no formatted # disks to detect, and disko (modules/disko/baremetal.nix) generates both # from the declarative zpool layout anyway. { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; boot = { initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; initrd.kernelModules = [ ]; kernelModules = [ "kvm-amd" ]; extraModulePackages = [ ]; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }