d-os settings store
integrations/d-os, §M6.5
Ez az oldal a nucleus saját dokumentációjából készül, ezért angol nyelvű.
nucleus-dos-settings: Layer (machine, user/<uid>), Settings over
any &dyn Kv — get, staged set / unset, commit (one transaction),
discard, snapshot, dump, dump_at(ts), layers, import / export
(the d-os.conf format). Keys cfg/machine/<k>, cfg/user/<uid>/<k>.
The nucleus-settings <dir> binary serves it over a line protocol on
stdin/stdout (commands and replies in integrations/d-os/README.md); it
keeps 10 000 commits of history. Packaged in the d-os archive and linked
into /bin by the manifest; CI starts it from the unpacked archive.
Tests (integrations/d-os/tests/settings.rs): layer separation (including
user/10 vs user/1000), import/export round trip, reading old settings,
the protocol through the binary, and a crash at every I/O point of a
multi-key save (both modes): the old or the new set, never a mix, and never
losing an acknowledged save.
What remains is d-os’s: starting the service and wiring it to the kernel cache (see the README’s “Switching d-os over”).