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