Skip to main content

Crate planarian_changes

Crate planarian_changes 

Source
Expand description

The change catalog (SPEC §9). Every ApplyChange names an entry here. An entry validates its arguments against permitted values and produces flat option assignments for planarian/overrides.nix. It never produces raw Nix. Risk is not read from here: the executor derives it from the evaluated generation (I14). affected_modules is only a hint.

The permitted values and the option each entry writes are owner configuration (services.planarian.catalog in the module), exported as JSON and loaded into CatalogConfig.

Structs§

ArgSpec
CatalogConfig
Entry
GymChoice
ListenAddress

Enums§

ArgKind
CatalogError

Constants§

REAPPLY
The catalog id of the reapply repair (§13, P22).

Functions§

arg_str 🔒
carried
Whether live still carries every assignment set makes.
entries
handle
Run an entry’s handler: validated option assignments to merge into the override file.
merge
base with change’s assignments applied on top.
nix_path 🔒
Option paths are dotted identifiers; quote any segment that isn’t a plain one.
nix_string 🔒
nix_value 🔒
one_of 🔒
parse
Parse a file produced by render back into assignments. Only the exact rendered form is accepted; anything else is None.
permitted 🔒
render
The full text of planarian/overrides.nix. Deterministic, so its content hash identifies the override set (§9 step 4).
target_of
The unit a per-unit catalog change is for (its service argument).
writeback
The ApplyChange that persists a runtime option (§12a write-back).