aboutsummaryrefslogtreecommitdiffstats
path: root/kernel.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-23 00:54:02 +0000
committertv <tv@krebsco.de>2026-11-23 01:08:31 +0000
commit86561dbdd2a91b1d0bc5e3f9fa1fab5331ccd3ec (patch)
treee660a534047aaa5287fa0b065d09199a240d7d6a /kernel.nix
parent47c370f495a4b092fdca05f25683d2f7024e89fb (diff)
layers/switch.nix: switching a running guest, for development
Every change to a guest meant a new image and a reboot. For a faster development loop, a guest with nix can now switch to a new build of its system instead: layers/switch.nix, imported into a layer, turns the switch on (the base system keeps it off, as a default now), and the run script's derivation has the system, so the host builds it with nix-build -A toplevel and runs its switch-to-configuration in the guest, which sees the host's store, where it got built (tested: a path added on the host shows up in the running guest). A switched guest runs what it didn't boot, so for production, it's still a reboot with the new run script. The kernel, its command line, Firecracker's configuration, new secrets, and adding or removing layers need one anyway. A path the guest looked for before the host had it stays missing, as the store's overlay remembers that (tested), until the guest drops its caches, which takes seconds, so that's documented, not done every time: nothing in the guest looks for paths it doesn't have, as a rule.
Diffstat (limited to 'kernel.nix')
0 files changed, 0 insertions, 0 deletions