diff options
author | Soispha <soispha@vhack.eu> | 2023-07-08 13:54:12 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-08 13:54:12 +0200 |
commit | 3ea6a58f86f493d188b2a2773311df91612ce9ff (patch) | |
tree | 8cdbb4246bd17097221475d0244deb9c086bd535 /notes/deploy.md | |
parent | Fix(treewide): Move all persistent dirs to impermanence to set permissions (diff) | |
download | nixos-server-3ea6a58f86f493d188b2a2773311df91612ce9ff.tar.gz nixos-server-3ea6a58f86f493d188b2a2773311df91612ce9ff.zip |
Docs(notes): Add section about redeployment
Diffstat (limited to '')
-rw-r--r-- | notes/deploy.md | 6 |
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" +``` |