32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
# PLACEHOLDER — replace on the real machine.
|
|
#
|
|
# disko (disk-config.nix) owns the OS-disk filesystems, so this file should
|
|
# only carry kernel modules + platform. Get the real values from the target:
|
|
#
|
|
# # during install, or via nixos-anywhere --generate-hardware-config:
|
|
# sudo nixos-generate-config --no-filesystems --root /mnt
|
|
#
|
|
# `--no-filesystems` omits the fileSystems.* blocks (disko provides them).
|
|
# Copy the generated file over this one. Keep the imports/kernel-module lines.
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
# Incl. eMMC/SD modules — root is on the ZimaBlade eMMC, initrd must mount it.
|
|
boot.initrd.availableKernelModules = [
|
|
"xhci_pci" "ahci" "usbhid" "sd_mod"
|
|
"sdhci_pci" "sdhci_acpi" "mmc_block" # eMMC (mmcblk0)
|
|
];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
# NO fileSystems here — disko defines "/" and "/boot" (see disk-config.nix).
|
|
# The NAS data mount lives in configuration.nix.
|
|
|
|
swapDevices = [ ];
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|