forked from hswaw/hscloud
24 lines
654 B
Markdown
24 lines
654 B
Markdown
|
Operations
|
||
|
===
|
||
|
|
||
|
Deploying NixOS machines
|
||
|
---
|
||
|
|
||
|
Machine configurations are in `ops/machines.nix`.
|
||
|
|
||
|
Wrapper script to show all available machines and provision a single machine:
|
||
|
|
||
|
$ $(nix-build -A ops.provision)
|
||
|
Available machines:
|
||
|
- bc01n01.hswaw.net
|
||
|
- bc01n02.hswaw.net
|
||
|
- dcr01s22.hswaw.net
|
||
|
- dcr01s24.hswaw.net
|
||
|
- edge01.waw.bgp.wtf
|
||
|
|
||
|
$ $(nix-build -A ops.provision) edge01.waw.bgp.wtf
|
||
|
|
||
|
This can be slow, as it evaluates/builds all machines' configs. If you just want to deploy one machine and possible iterate faster:
|
||
|
|
||
|
$ $(nix-build -A 'ops.machines."edge01.waw.bgp.wtf".config.passthru.hscloud.provision')
|