diff options
Diffstat (limited to 'nix/README.md')
| -rw-r--r-- | nix/README.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nix/README.md b/nix/README.md new file mode 100644 index 0000000..08d7305 --- /dev/null +++ b/nix/README.md @@ -0,0 +1,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 |
