Skip to main content

Module config

Module config 

Source
Expand description

/etc/planarian/config.json, written by the NixOS module, and the canonical probes shipped in the core package (I10).

Structs§

FileConfig
PostureDecl
What the failure posture is, and what is waiting (§12d, P16). A generation switched live can strengthen the posture or shorten the timeout at once; a weaker declaration takes effect when it is booted, because the posture follows the booted generation until then.
RuntimeOptionConfig

Constants§

BOOTED_CONFIG
The configuration of the generation this machine booted (§12d, P16).
CONFIG
CORE_HASH_RECORD
The running generation’s record of its core files’ hashes (I2, §12d), the one planarian-recovery checks; PLANARIAN_CORE_HASH overrides it.

Functions§

core_hash
SystemState.core_hash (P19): the hash of the recorded core-hash file’s bytes. Zero only when there is no record (a development build); any other read failure is an error, never a value (§18 rule 21). A damaged record is the watchdog’s integrity finding (I2), not this.
default_boot_ready_secs 🔒
default_health_secs 🔒
is_admin
Is uid root or a member of group (by /etc/group and /etc/passwd)?
load_canonical
Canonical probes from the core package: <prefix>/share/planarian/canonical.json next to the running binary, never from the generation (I10).