aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
blob: 709aaf59987609c941a5eac20d59fcce8ebd3eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# enstate

State next to the Nix store: keys, passwords, and public data about other
hosts, which move forward only and change without deploying a system.  A
system declares what state it can consume; a receptor on the host accepts a
snapshot that fits, puts it in place and reloads what uses it, or rejects
it.

The design is in [docs/design.md](docs/design.md);
[docs/migrations.md](docs/migrations.md) walks through its migration model.

## What there is

`enstate`, one program for the receptor and the provider:

- `--plan PATH`, `--apply PATH`: what the submission in PATH would do, and
  doing it: complete and partial submissions, items required and optional,
  groups, removal, the chain as order, validators (a type's and across
  slots), views and their reactions;
- `--migrate [--dry-run]`: serving a generation from snapshots accepted
  under another schema (same names, `renamedFrom` both ways, kept
  entries), refusing where a required slot can't be filled;
- `--status`, `--materialize`: the snapshots, and putting every view in
  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.

```sh
cargo build
cargo test
enstate --help
```