aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-25 23:08:03 +0000
committertv <tv@krebsco.de>2026-11-26 00:03:17 +0000
commitdc44430d60498178450b3c55b991fbcc4330c81c (patch)
tree81b7f7f681d9719863e96ae19c3199b6e8881629 /README.md
parentb5edf2b27f18f6576d3bcc00f65f95754aec1317 (diff)
rigs: the README, and the restHEADmaster
The README is about rigs now, NixOS guests, each a computer of its own, in Firecracker or Cloud Hypervisor, with the new names in its examples (rig.home.required, rig.secrets, rig-drop-caches, ~/rig-store.img, rig-layer-K images), and where any VMM is meant, it says the VMM, not Firecracker.
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 12 insertions, 11 deletions
diff --git a/README.md b/README.md
index 0156f0c..1bfef29 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,8 @@
-# firecracker
+# rigs
-NixOS guests in [Firecracker](https://firecracker-microvm.github.io/)
-(or Cloud Hypervisor, see below),
+NixOS guests, each a computer of its own, in
+[Firecracker](https://firecracker-microvm.github.io/) or [Cloud
+Hypervisor](https://www.cloudhypervisor.org/) (see below),
started from a NixOS host, reached by ssh, or with `layers/console.nix`,
dropping into a root shell on the serial console. Boots in about a
second and a quarter. Stable Nix, no flakes.
@@ -114,7 +115,7 @@ which the run script then requires (and refuses for a guest without nix,
like `--nixpkgs` and `--nixpkgs-cache`, below):
```sh
-./result/bin/run-rig --store ~/fc-store.img [--store-size 50G]
+./result/bin/run-rig --store ~/rig-store.img [--store-size 50G]
```
The file gets created (sparse, default 16G) if it doesn't exist. Only one
@@ -123,7 +124,7 @@ unless given a disk of its own, which works the same way (kept apart
from the store, so either can be kept or thrown away):
```sh
-./result/bin/run-rig --home ~/fc-home.img [--home-size 50G]
+./result/bin/run-rig --home ~/rig-home.img [--home-size 50G]
```
For a faster development loop, a guest with nix can switch to a new
@@ -138,7 +139,7 @@ ssh root@VM $sys/bin/switch-to-configuration test
The guest reads the new system from the host's store until it reboots.
It's no longer what it booted, so for production, reboot it with the new
-run script instead. The kernel, its command line, Firecracker's
+run script instead. The kernel, its command line, the VMM's
configuration, new secrets, and adding or removing layers need a reboot
anyway.
@@ -155,7 +156,7 @@ A layer that keeps its state in `/home` can make that disk mandatory,
so the state doesn't silently end up on the tmpfs:
```nix
-{ fc.home.required = true; }
+{ rig.home.required = true; }
```
The run script then refuses to start the guest without `--home`.
@@ -169,7 +170,7 @@ faster, but changes may not show up while the guest runs). Other modes:
checkout, the run script tells the guest to drop its caches whenever the
checkout's commit changes. For other changes, and in the rare case
that the guest looked for a store path before the host had it, anyone
-in the guest can drop them: `fc-drop-caches` (it takes seconds).
+in the guest can drop them: `rig-drop-caches` (it takes seconds).
The guest gets 2 CPUs and 1024 MiB unless told otherwise (`--vcpus N`,
1 to 32; `--mem-size MIB`).
@@ -209,7 +210,7 @@ directory see): a layer declares what it needs, where it goes (default:
`/run/secrets/NAME`), and whose it is (default: root's, 0400):
```nix
-{ fc.secrets."hermes.env" = { owner = "hermes"; }; }
+{ rig.secrets."hermes.env" = { owner = "hermes"; }; }
```
and the run script, which doesn't start the guest without them, gets
@@ -234,7 +235,7 @@ The guest runs the top layer's system. Each layer gets its own image,
with only the store paths the layers below don't have, so the base
image, and those of layers below, stay the same whatever goes on top:
a service layer costs a small image of its own, named after its file
-(`firecracker-layer-2-my-service.img`). Changing a layer
+(`rig-layer-2-my-service.img`). Changing a layer
changes the images of the layers above it.
What all layers share goes into the base system, with `base`, NixOS
@@ -334,7 +335,7 @@ the list its own VM uses.
## Layout
- `pkgs/run-rig/default.nix`: the guest's NixOS configuration,
- the Firecracker configuration, and the `run-rig` script.
+ the VMM's configuration, and the `run-rig` script.
- `base/kernel.nix`: the cut-down kernel, for `base`.
- `base/systemd.nix`: a slimmer systemd, for `base`.
- `layers/nix.nix`: nix, as a layer.