summaryrefslogtreecommitdiff
path: root/machines/enzo/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/enzo/hardware-configuration.nix')
-rw-r--r--machines/enzo/hardware-configuration.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/machines/enzo/hardware-configuration.nix b/machines/enzo/hardware-configuration.nix
new file mode 100644
index 0000000..30c00ee
--- /dev/null
+++ b/machines/enzo/hardware-configuration.nix
@@ -0,0 +1,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";
+}