blob: 30c00eecfad3f000615f7b6ccaa744ad1e94b86a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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";
}
|