From 6eb9ecb5419e0df7a10bfe3943e4e80da3874c3f Mon Sep 17 00:00:00 2001 From: kat witch Date: Fri, 26 Feb 2021 08:25:28 +0000 Subject: [PATCH] Added README. Bugfix to nyx. --- README.md | 11 +++++++++++ nyx | 1 + 2 files changed, 12 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..81c2d306 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# kat's nixfiles + +To provision a new host: + +* add that host to the SSH config in programs.ssh +* create a config for that host that contains a meta.deploy.ssh.host +* run `nyx install `. + +To rebuild a host: + +* run `nyx build ` where method is optional, can be... switch or boot or such. diff --git a/nyx b/nyx index 2109a5dd..b07e30db 100755 --- a/nyx +++ b/nyx @@ -17,6 +17,7 @@ build() { } install() { + HOST=$1 nix build -f . hosts.$HOST.config.system.build.toplevel CLOSURE=$(readlink result) nix-store --export $(nix-store -qR ./result) | ssh root@$HOST nix-store --import --store /mnt