Add channel selection in the deploy script
This commit is contained in:
parent
c4c20b691c
commit
e658b79d06
2 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,8 @@ Basically:
|
||||||
- Add your wireguard configuration to `cluster/prod/cluster.nix`
|
- Add your wireguard configuration to `cluster/prod/cluster.nix`
|
||||||
- You will have to edit your NAT config manually
|
- You will have to edit your NAT config manually
|
||||||
- To get your node's wg public key, you must run `./deploy_prod prod <node>`, see the next section for more information
|
- To get your node's wg public key, you must run `./deploy_prod prod <node>`, see the next section for more information
|
||||||
|
- Add your nodes to `cluster/prod/ssh_config`, it will be used by the various SSH scripts.
|
||||||
|
- If you use `ssh` directly, use `ssh -F ./cluster/prod/ssh_config`
|
||||||
|
|
||||||
## How to deploy a Nix configuration on a fresh node
|
## How to deploy a Nix configuration on a fresh node
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,5 @@ copy cluster/$CLUSTER/cluster.nix /etc/nixos/cluster.nix
|
||||||
copy cluster/$CLUSTER/node/$NIXHOST.nix /etc/nixos/node.nix
|
copy cluster/$CLUSTER/node/$NIXHOST.nix /etc/nixos/node.nix
|
||||||
copy cluster/$CLUSTER/node/$NIXHOST.site.nix /etc/nixos/site.nix
|
copy cluster/$CLUSTER/node/$NIXHOST.site.nix /etc/nixos/site.nix
|
||||||
|
|
||||||
|
cmd "nix-channel --add https://nixos.org/channels/nixos-22.05 nixos"
|
||||||
cmd nixos-rebuild switch --show-trace
|
cmd nixos-rebuild switch --show-trace
|
||||||
|
|
Loading…
Reference in a new issue