aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-10-16 14:13:55 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-10-16 14:13:55 +0200
commit52d0fdf133b901be20b53b578efdaf39daafc522 (patch)
tree92e01e7d84a257f34b45af982717d657b67a8338
parenta07b185055cda8b4b51aeee343a145ff421d4157 (diff)
downloadnixcfg-52d0fdf133b901be20b53b578efdaf39daafc522.tar.gz
nixcfg-52d0fdf133b901be20b53b578efdaf39daafc522.zip
Add channel selection in the deploy script
-rw-r--r--README.md2
-rwxr-xr-xdeploy_nixos1
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index ecf2567..4975527 100644
--- a/README.md
+++ b/README.md
@@ -31,6 +31,8 @@ Basically:
- Add your wireguard configuration to `cluster/prod/cluster.nix`
- 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
+ - 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
diff --git a/deploy_nixos b/deploy_nixos
index 0bd1b4c..2b55799 100755
--- a/deploy_nixos
+++ b/deploy_nixos
@@ -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.site.nix /etc/nixos/site.nix
+cmd "nix-channel --add https://nixos.org/channels/nixos-22.05 nixos"
cmd nixos-rebuild switch --show-trace