# PLACEHOLDER hardware configuration for the Raspberry Pi Zero 2 W. # # This file is NOT the real generated config -- it exists only so the host # evaluates in CI before the Pi is provisioned. The machine will not boot from # it as-is. On first install, regenerate this file on the device with # nixos-generate-config --root /mnt # and replace this placeholder with the output (commit it). See ../../docs/hosts/pizero2w.md. # # Like every hardware-configuration.nix in this repo, this file is excluded from # the formatter and linters (see the pre-commit/treefmt excludes in flake.nix). { modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; nixpkgs.hostPlatform = "aarch64-linux"; # The Zero 2 W boots from an SD card with a FAT firmware partition and an ext4 # root. Labels match the conventional sd-image layout; the real generated # config will use by-uuid device paths instead. fileSystems."/" = { device = "/dev/disk/by-label/NIXOS_SD"; fsType = "ext4"; }; fileSystems."/boot/firmware" = { device = "/dev/disk/by-label/FIRMWARE"; fsType = "vfat"; }; # 512 MB of RAM and an SD card: no swap partition (SD cards wear out under # swap writes). zram takes its place; see ../../hosts/PiZero2W/configuration.nix. swapDevices = [ ]; }