aboutsummaryrefslogtreecommitdiff
path: root/nix/README.md
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2026-07-01 04:09:21 +0000
committerKumar Damani <me@kumardamani.net>2026-07-01 04:12:25 +0000
commit02926f70770ceb90cf382da2b54f888ba969f423 (patch)
tree0a7cc1fc1c68ae91ae49070bea5cd3708b875819 /nix/README.md
parentbc1ad567d2eac46088285ed7d2d688fffc91a82f (diff)
nix based config
Diffstat (limited to 'nix/README.md')
-rw-r--r--nix/README.md30
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