mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
Added README. Bugfix to nyx.
This commit is contained in:
parent
6727a8c014
commit
6eb9ecb541
2 changed files with 12 additions and 0 deletions
11
README.md
Normal file
11
README.md
Normal 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
1
nyx
|
|
@ -17,6 +17,7 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
|
HOST=$1
|
||||||
nix build -f . hosts.$HOST.config.system.build.toplevel
|
nix build -f . hosts.$HOST.config.system.build.toplevel
|
||||||
CLOSURE=$(readlink result)
|
CLOSURE=$(readlink result)
|
||||||
nix-store --export $(nix-store -qR ./result) | ssh root@$HOST nix-store --import --store /mnt
|
nix-store --export $(nix-store -qR ./result) | ssh root@$HOST nix-store --import --store /mnt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue