aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-17 00:44:08 +0000
committertv <tv@krebsco.de>2026-11-17 00:44:08 +0000
commit9d7f66b9cbdc203226ef919a4108706248d9779d (patch)
tree7e0eeb52ae6a2bee96a646b3f71968a504626e54 /README.md
parent9687fe329ccc88b13d3614a8d8d332a3ea3dcab9 (diff)
add --nixpkgs-cache MODE
/nixpkgs isn't cached in the guest, so changes to a checkout show up right away, but evaluating is slow. --nixpkgs-cache sets 9P's cache mode for it, e.g. loose, which made evaluating tmux several times faster. It gets passed on the kernel command line as fc.9p566=cache=MODE, and mount.vsock9p appends such options for the port it mounts. Options also take the --option=value form now.
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 4174b03..69ee20c 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,11 @@ The file gets created (sparse, default 16G) if it doesn't exist. Only one
VM at a time can use it.
`/nixpkgs` is the nixpkgs the guest was built from (`<nixpkgs>`, checkout
-or not); `--nixpkgs DIR` serves another one.
+or not); `--nixpkgs DIR` serves another one. It's not cached in the
+guest, so changes to it show up right away, but evaluating is slow;
+`--nixpkgs-cache=loose` caches it (several times faster, but changes may
+not show up while the guest runs). Other modes: `mmap`, `readahead`,
+`none` (the default).
To use a cut-down kernel, based on Firecracker's recommended guest
configuration, instead of `linuxPackages_latest`: