11 lines
258 B
Bash
Executable file
11 lines
258 B
Bash
Executable file
#!/usr/bin/env bash
|
|
echo "Setting up $(hostname)"
|
|
|
|
HOST_FOLDER=hosts
|
|
HOSTNAME=$(hostname)
|
|
CONFIG=$HOST_FOLDER/$HOSTNAME/configuration.nix
|
|
|
|
if [[ -n $(cmp --silent configuration.nix "$CONFIG" || echo "different") ]]
|
|
then
|
|
ln -s "$CONFIG" configuration.nix
|
|
fi
|