gunk-dev/the-valley

host.cue

source0c9d14cb53famain's published tip history
1.2 KiB
1// The valley host declaration for the-valley itself — the Phase 0 pilot
2// (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 (design/user-scenarios.md § S1). GitHub is retained
12 // as a transitional push mirror during migration: every push to the
13 // primary is replicated there, best-effort.
14 //
15 // git.enable defaults to true — git is the only store type today.
16 "the-valley": {
17 mirrors: ["git@github.com:gunk-dev/the-valley.git"]
18 }
19}
20
21// The pilot's durability policy (dcr-d7952bc): nightly encrypted restic
22// snapshots of the host's data to a Hetzner Storage Box over sftp.
23// cadence and retention take the defaults — nightly, 7 daily / 4 weekly /
24// 6 monthly. The repository URL, credentials, and pinned host key are
25// machine integration, supplied by the consumer to the installer
26// (services.valley.backup.*), never declared here.
27backup: {
28 target: "restic-sftp"
29}