blob: a9a92612d5becb3b5066583fbf8719454c4fe14b (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/usr/bin/env bash
for NIXHOST in $(cat inventory); do
echo "==== DOING $NIXHOST ===="
cat configuration.nix | ssh root@$NIXHOST tee /etc/nixos/configuration.nix > /dev/null
cat node/$NIXHOST.nix | ssh root@$NIXHOST tee /etc/nixos/node.nix > /dev/null
ssh root@$NIXHOST nixos-rebuild switch
done
|