summary refs log tree commit diff stats
path: root/notes
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-08 13:54:12 +0200
committerSoispha <soispha@vhack.eu>2023-07-08 13:54:12 +0200
commit3ea6a58f86f493d188b2a2773311df91612ce9ff (patch)
tree8cdbb4246bd17097221475d0244deb9c086bd535 /notes
parentFix(treewide): Move all persistent dirs to impermanence to set permissions (diff)
downloadnixos-server-3ea6a58f86f493d188b2a2773311df91612ce9ff.tar.gz
nixos-server-3ea6a58f86f493d188b2a2773311df91612ce9ff.zip
Docs(notes): Add section about redeployment
Diffstat (limited to 'notes')
-rw-r--r--notes/deploy.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/notes/deploy.md b/notes/deploy.md
new file mode 100644
index 0000000..61dcbfc
--- /dev/null
+++ b/notes/deploy.md
@@ -0,0 +1,6 @@
+# Full redeployment
+After a complete server purge just load up the newest NixOS ISO, set the root password and run:
+```bash
+ipv4_address=$(dig +short "<hostname>"); # ipv6 seems to fail in this context
+nix run github:numtide/nixos-anywhere -- --flake .#<hostname> root@"$ipv4_address"
+```