aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
Commit message (Collapse)AuthorAgeFilesLines
* nix: the package, a NixOS module, its VM testtv15 hours1-0/+10
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.