aboutsummaryrefslogtreecommitdiff
path: root/nix/README.md
blob: 08d730598dad9d26687a8064c59fbd210c354e4d (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
Build base image:
```sh
nixos-rebuild build-image --image-variant proxmox --flake .#base
```

Copy base image to a Proxmox node:
```sh
scp result/vzdump-qemu-nixos-26.05.20260401.6201e20.vma.zst root@192.168.0.85:/var/lib/vz/dump/
```

Restore on Proxmox.

Convert to Proxmox Template.

Run TF as usual using clone against the Template.

```sh
# first time only
./generate-keys.sh torrents--2

# edit the .sops.yaml to include the host's age key

sops secrets/rproxy-2.yaml

./deploy.sh torrents-2 root
```

Sources:
https://github.com/nix-community/nixos-generators
https://gist.github.com/joshleecreates/e6892ca21b0e6b7c24d96ca2a24bf23e