diff options
| author | tv <tv@krebsco.de> | 2026-11-20 02:49:39 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 02:49:39 +0000 |
| commit | 1d8327ebfa7bc859ecafb0629c93e756b0b10357 (patch) | |
| tree | be787131011dca4e338ef612809f127444fba612 /layers/switch.nix | |
| parent | e6b6fbb9c48093fc460dd90e88a797f79c6c6ee6 (diff) | |
run-firecracker-vm: store layers
The new argument layers is a list of NixOS modules, each a layer on top
of the ones before, the first on top of the base system. The guest runs
the top layer's system. Each layer gets its own erofs image with only
the store paths of its system's closure that the layers below don't
have, so the base image (and those of layers below) stays the same
whatever goes on top:
nix-build pkgs/run-firecracker-vm --arg layers '[ ./my-service.nix ]'
The images become read-only drives, mounted as overlay lower layers
(with the host store below them, as before). The writable store disk
is now the first drive (/dev/vda), the images follow (vdb, vdc, ...).
Diffstat (limited to 'layers/switch.nix')
0 files changed, 0 insertions, 0 deletions
