gunk-dev/the-valley

host.cue

sourcedd3d6fba36ddmain's published tip history
1.3 KiB
1// The valley host declaration for the-valley itself — the Phase 0 pilot
2// (archive/design/roadmap.md). This file is the single domain input: the NixOS
3// module validates it against schema/valley.cue and provisions the host
4// from it. Machines never redefine what is declared here.
5//
6// Validate: cue vet -c schema/valley.cue examples/host.cue
7// Export: cue export schema/valley.cue examples/host.cue
8package valley
9
10projects: {
11 // The pilot repo (archive/design/user-scenarios.md § S1). GitHub is retained
12 // as a transitional publication mirror during migration: every push
13 // to the primary replicates main and the tags there, best-effort.
14 // Topic branches awaiting review stay on the primary (dcr-24d62f7).
15 //
16 // git.enable defaults to true — git is the only store type today.
17 "the-valley": {
18 mirrors: ["git@github.com:gunk-dev/the-valley.git"]
19 }
20}
21
22// The pilot's durability policy (dcr-d7952bc): nightly encrypted restic
23// snapshots of the host's data to a Hetzner Storage Box over sftp.
24// cadence and retention take the defaults — nightly, 7 daily / 4 weekly /
25// 6 monthly. The repository URL, credentials, and pinned host key are
26// machine integration, supplied by the consumer to the installer
27// (services.valley.backup.*), never declared here.
28backup: {
29 target: "restic-sftp"
30}