From 804d708f872dd9e383a85ae6d5922ae194ca7f79 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Thu, 11 Jun 2026 07:59:02 +0100 Subject: [PATCH] fix(install): pin the common nixos-hardware profile stacks into the ISO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Round 7 in-VM: autodetection emitted common-cpu-intel, whose nixos-hardware module pulls the whole Intel graphics stack (intel-media-driver, compute-runtime, libva, level-zero…) — none of it on the ISO, so the offline install built graphics drivers from source. The representative pin now imports the common-* profiles (intel+amd cpu/gpu, laptop, ssd, pc), covering what the detector emits on ordinary machines. Model-specific profiles may still need network. Co-Authored-By: Claude Fable 5 --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flake.nix b/flake.nix index dd90c08..e47a48e 100644 --- a/flake.nix +++ b/flake.nix @@ -226,6 +226,18 @@ modules = [ self.nixosModules.nomarchy { environment.systemPackages = [ home-manager.packages.${system}.home-manager ]; } + # The installer's autodetection emits these on real + # machines (and the intel CPU module pulls the whole + # iGPU stack) — without them an offline install on + # common hardware builds graphics drivers from + # source. Model-specific profiles may still need + # network; the common ground is covered. + nixos-hardware.nixosModules.common-cpu-intel + nixos-hardware.nixosModules.common-cpu-amd + nixos-hardware.nixosModules.common-gpu-amd + nixos-hardware.nixosModules.common-pc-laptop + nixos-hardware.nixosModules.common-pc-ssd + nixos-hardware.nixosModules.common-pc (./templates/downstream + "/hardware-configuration.nix") (./templates/downstream + "/system.nix") ({ lib, ... }: {