summaryrefslogtreecommitdiff
path: root/nix/nixops/README.md
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2021-11-07 02:06:32 +0100
committerMiguel <m.i@gmx.at>2021-11-07 02:06:32 +0100
commit78306cc7562e8a8475dd839fdc175ddf15654df5 (patch)
treeeef029adca44a15f804e3c3bff45edc74e48f9f2 /nix/nixops/README.md
parentdc837e396eb92218b5bed025801e1accb11415c8 (diff)
adding new nix dir
Diffstat (limited to 'nix/nixops/README.md')
-rw-r--r--nix/nixops/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/nix/nixops/README.md b/nix/nixops/README.md
new file mode 100644
index 0000000..ce2ae46
--- /dev/null
+++ b/nix/nixops/README.md
@@ -0,0 +1,23 @@
+WARNING: Be careful about assumptions made by this script,
+as /dev/sda beeing the target disk etc..
+
+nix-shell -p nixos-generators nixops
+
+Adapt config-iso.nix/ config-extra.nix (public key & /dev/sdX)
+
+cp $(nixos-generate -c config-iso.nix -f iso) my-nixos.iso
+
+boot the iso in fresh vm (e.g. 25G HDD, 1024 RAM)
+
+ssh into vm
+
+run : miguel-quick-install [desired-hostname]
+reboot into new nixos
+
+back on host:
+adapt nixops.nix
+
+run: (optionally with "-d label" after each)
+ nixops create nixops.nix # only first time
+ nixops deploy .. etc
+ nixops ssh-for-each -- uptime