Added README. Bugfix to nyx.

This commit is contained in:
kat witch 2021-02-26 08:25:28 +00:00
parent 6727a8c014
commit 6eb9ecb541
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 12 additions and 0 deletions

11
README.md Normal file
View file

@ -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 <hostname>`.
To rebuild a host:
* run `nyx build <hostname> <method>` where method is optional, can be... switch or boot or such.

1
nyx
View file

@ -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