fix(neogaia): replace guessed hardware detection with a real scan (task 0017)
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.
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
{ lib, modulesPath, ... }:
|
||||
# Placeholder: regenerate with nixos-generate-config on the target machine.
|
||||
# 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"
|
||||
"thunderbolt"
|
||||
"nvme"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"rtsx_pci_sdmmc"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
|
||||
Reference in New Issue
Block a user