'nix run' threw 'spawnSync openssl ENOENT' on the real NixOS target even
though openssl is installed there system-wide - nix run's environment
doesn't carry ambient host PATH entries like /usr/bin, only what the
flake explicitly provides. run-local.mjs shells out to openssl to
generate its HTTPS cert, so pkgs.openssl now gets explicitly prefixed
onto PATH in the apps.default wrapper script, guaranteeing it's
reachable regardless of host state - the actual Nix-idiomatic fix,
not a hope that a system binary happens to be on PATH.
Verified via the real flake: nix build succeeded, and nix run fetched
openssl-3.5.9-bin from cache.nixos.org specifically because of this
reference (proof it is a real, explicit dependency now), then served
HTTPS successfully with a real generated cert.
Per explicit preference: no NixOS module/global config edit required.
'nix run .' starts one process serving both the static frontend and
api/* on one auto-picked free port (tries 3001, falls back to any free
port). Ctrl+C or kill stops it; only ./.data's SQLite files persist.
Verified directly: real HTTP 200 on the served frontend.
Also commits the full cross-device sync architecture re-evaluation across all 13 mini-apps (.omo/evidence/service-sync-reevaluation.md), which found 4 broken community features (Sky memory wall/morale, Health Post symptom tally, Assembly testimony) caused by the same local-only-sync root cause the user flagged.