Basically this, but without hacks: https://gitlab.com/misuzu/nixos-unattended-install-iso/-/blob/f5031c0b633b0f3c22986ba2f9df047d42d4f2ea/disko.nix#L5 https://gitlab.com/misuzu/nixos-unattended-install-iso/-/blob/f5031c0b633b0f3c22986ba2f9df047d42d4f2ea/iso.nix#L37 Maybe add support for something like `--disk main /dev/sda` to `system.build.diskoScript` and friends?