# PLACEHOLDER — regenerate on the laptop. # # During install run: nixos-generate-config --no-filesystems --root /mnt # then copy the generated hardware-configuration.nix over this file. Because the # disk layout is declared in ./disko.nix, this file must NOT define fileSystems # or swapDevices (--no-filesystems omits them). It only needs to evaluate until # the real one is generated; it will NOT boot as-is. { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; # nixos-generate-config fills these in on the laptop. TPM unlock in initrd # needs the TPM module (tpm_tis / tpm_crb) here — usually auto-detected. boot.initrd.availableKernelModules = [ ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; # fileSystems / swapDevices intentionally omitted — provided by ./disko.nix. networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }