about summary refs log tree commit diff
path: root/README.md
blob: 5ae3fda388dbad065ed002001370ca400985d498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# hefe

## Buildhosts

[hydra](https://hydra.emile.space) builds the packages, templates and hosts continously.

- x86_64-linux: corrino (Hetzner AX41)
- x86_64-darwin: kaitain (Mac Mini)
- aarch64-linux: pi4
- aarch64-darwin: caladan (m1 macbook air)

## Secrets

- Managed using agenix
- Don't forget to add secrets to git!

Create secrets:
```bash
./secret_create.sh [host] [name of secret ending in .age]
```

Edit secrets:

```bash
; EDITOR=hx nix run git+https://github.com/ryantm/agenix -- -e <secret>
```

Print the generated secrets file as follows:

```bash
; nix eval -I nixpkgs=flake:nixpkgs --file secrets.nix
```

## Deploy

```bash
; BUILDHOST=corrino HOSTNAME=corrino make deploy
; BUILDHOST=corrino HOSTNAME=lampadas make deploy
; BUILDHOST=corrino HOSTNAME=lankiveil make deploy
; make switch-caladan
```

## Troubleshooting

Weird `lock` issues? Try `sudo pkill -9 nix-daemon` on the build machine