2021-11-02 23:38:40 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
echo "Setting up $(hostname)"
|
|
|
|
|
|
|
|
HOST_FOLDER=hosts
|
|
|
|
HOSTNAME=$(hostname)
|
2021-11-04 18:42:11 +01:00
|
|
|
CONFIG=$HOST_FOLDER/$HOSTNAME/configuration.nix
|
2021-11-02 23:38:40 +01:00
|
|
|
|
|
|
|
if [[ -n $(cmp --silent configuration.nix "$CONFIG" || echo "different") ]]
|
|
|
|
then
|
|
|
|
ln -s "$CONFIG" configuration.nix
|
|
|
|
fi
|