Example: bootstrap the stack as a new user¶
The public plateforme flake builds the macOS control host (nix-darwin) and the NixOS VM images, but takes no secrets input. Your secrets live in a private wrapper repo that pins plateforme and injects your SOPS file at build time — the example/ directory in this repository is the template for that wrapper.
Full walkthrough: example/README.md.
Summary¶
your-dir/
├── plateforme/ # public clone (this repo)
└── secrets/ # copy of example/, your private wrapper repo
- Create the wrapper:
mkdir secrets && cd secrets && git init, thennix run github:loic-roux-404/plateforme#paas -- init .(installs this template from the flake — no plateforme checkout needed). - Age key:
ssh-to-age < ~/.ssh/id_ed25519.pub→ put the recipient insecrets/.sops.yaml. - Identity: set
user/githubUserinsecrets/flake.nix. - Secrets:
cp secrets-skeleton/darwin.yaml . && sops encrypt -i darwin.yaml(dummy values bootstrap fine; the AI stack is disabled by default — see the README to re-enable it). - macOS host:
make bootstrapinsecrets/. - Deploy from the wrapper:
./paas doctor,./paas build, then./paas tg cloud/local→./paas tg network/local(paas/apps layers = milestone 2). See 4-distribution.md for the fullpaasreference and the pin/override contract.
Why a wrapper repo¶
- Secrets stay private: plateforme is the public product, the wrapper is the only place ciphertext lives. One commit there rotates a secret — no plateforme change.
- The pin (
flake.lock) is your last-known-good bootstrap;make updatebumps it only after a greenmake bootstrap. PLATFORM_DIR=../plateforme make bootstrapvalidates a plateforme working tree through the wrapper before you bump the pin.
Validate the template¶
example/test.sh reproduces a fresh user (throwaway age key, dummy secrets)
and builds the darwin closure — no switch, safe to run anytime: