nixosModules.image builds a GPT disk image with systemd-repart: ESP with a UKI carrying the store's verity root hash, an erofs /nix/store on a dm-verity partition, a tmpfs root, an immutable /etc overlay and an ext4 state partition on /var. No Nix on the device; it is replaced as a whole. The store is made with 4 KiB erofs blocks: systemd-repart passes the 512 byte sector size to mkfs.erofs, and libblkid cannot verify the checksum of such a superblock, so udev never reported the file system and the initrd waited forever for /dev/mapper/usr. examples/image (nix build .#image) is a hardware test build with a debug console password; checks.image boots the image under UEFI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
654 B
Nix
18 lines
654 B
Nix
{ self, pkgs }:
|
|
{
|
|
basic = import ./basic.nix { inherit self pkgs; };
|
|
pppoe = import ./basic.nix {
|
|
inherit self pkgs;
|
|
wan4 = "pppoe";
|
|
};
|
|
vlans = import ./vlans.nix { inherit self pkgs; };
|
|
onestick = import ./onestick.nix { inherit self pkgs; };
|
|
rollback = import ./rollback.nix { inherit self pkgs; };
|
|
dns = import ./dns.nix { inherit self pkgs; };
|
|
installer = import ./installer.nix { inherit self pkgs; };
|
|
image = import ./image.nix { inherit self pkgs; };
|
|
wireguard = import ./wireguard.nix { inherit self pkgs; };
|
|
lib = import ./lib.nix { inherit pkgs; };
|
|
assertions = import ./assertions.nix { inherit self pkgs; };
|
|
}
|