The detection file was written before the machine ran NixOS, as an educated guess at what a Dell XPS 13 9380 needs, and said so. Its contents now come from nixos-generate-config on the running machine. The guess was wider than the measurement rather than narrower: it named thunderbolt, usb_storage and sd_mod, none of which the scan reports, and omitted rtsx_pci_sdmmc. Nothing needed to reach the root device was missing. Filesystem, swap, LUKS and microcode declarations from the scan are dropped. The disk layout derives the first three and the hardware profile supplies the last, so carrying them here would duplicate definitions that are produced on every evaluation.
18 lines
491 B
Nix
18 lines
491 B
Nix
{ lib, modulesPath, ... }:
|
|
# Hardware detected by nixos-generate-config on this machine.
|
|
# disko derives `fileSystems` and the LUKS device; none declared here.
|
|
{
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"xhci_pci"
|
|
"nvme"
|
|
"rtsx_pci_sdmmc"
|
|
];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|