forked from Deuxfleurs/nixcfg
9 lines
302 B
Bash
9 lines
302 B
Bash
|
#!/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
|