terraform/cloudflare: add build-box CNAME

also add ssh public key
This commit is contained in:
zowoq 2023-09-24 20:45:51 +10:00
parent 8416a0fa2b
commit d0ce95b4bb
2 changed files with 13 additions and 4 deletions

View file

@ -1,6 +1,8 @@
`build01.nix-community.org`
We provide an `x86_64-linux` machine as a public remote builder for the nix community.
We provide an `x86_64-linux` build machine as a public remote builder for the nix community.
```
build-box.nix-community.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIElIQ54qAy7Dh63rBudYKdbzJHrrbrrMXLYl7Pkmk88H
```
#### Access
@ -12,8 +14,8 @@ If you happen to have your NixOS & home-manager configurations intertwined but y
```console
# somehow get the .drv of the above expression into $path
$ nix copy --to ssh://build01.nix-community.org --derivation $path
$ ssh build01.nix-community.org
$ nix copy --to ssh://build-box.nix-community.org --derivation $path
$ ssh build-box.nix-community.org
$ nix-store -r $path
$ $path
```

View file

@ -152,6 +152,13 @@ resource "cloudflare_record" "nix-community-org-lemmy-CNAME" {
type = "CNAME"
}
resource "cloudflare_record" "nix-community-org-build-box-CNAME" {
zone_id = local.nix_community_zone_id
name = "build-box"
value = "build01.nix-community.org"
type = "CNAME"
}
# Used by nix-community/nixpkgs-docker
resource "cloudflare_record" "nix-community-org-docker-CNAME" {
zone_id = local.nix_community_zone_id