From 9d7f66b9cbdc203226ef919a4108706248d9779d Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 00:44:08 +0000 Subject: 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. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README.md') 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 (``, 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`: -- cgit v1.3.1