From e1644b9d0f72e9bad824e75e3b294968b06a454e Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 30 Nov 2026 13:13:44 +0000 Subject: nix: the package, a NixOS module, its VM test The module makes the schema from options (/etc/enstate/schema.json), every slot its own view unless it says otherwise, and names the views' paths (read-only `path` options) for the services that read them. It configures none of them: a service whose LoadCredential= reads a view is ordered after the unit that puts the views in place, by itself. That unit runs --migrate at boot and when the schema changes; the check before a switch is --migrate --dry-run against the new schema. The test: a consumer with a LoadCredential= of its own; apply from a source list, rotate, switch across a rename and back, a switch refused, a reboot. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 709aaf5..8a5f624 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,15 @@ The design is in [docs/design.md](docs/design.md); place from them; - `--pack PATH --out DIR`: a submission from a source list, JSON or TOML. -Not yet: converters, derived slots and steps; the NixOS module, a NixOS VM test, -shell completion, a sandbox for programs. +Settings come from `/etc/enstate/config.json` if it exists, then `--config` +files, then arguments. + +The NixOS module is [nix/module.nix](nix/module.nix); +[default.nix](default.nix) has the package and the module's VM test +(`nix-build -A tests.vm`). + +Not yet: converters, derived slots and steps; shell completion, a sandbox for +programs. ```sh cargo build -- cgit v1.3.1