Files
infra-lido/scripts/bootstrap-machine.bash
Martin Nikov dd3c586ceb
CI/CD / CI-CD (push) Has been cancelled
refactor(cachix): Use agenix for CACHIX_AGENT_TOKEN
Before that we had to copy it with bootstrap script.
2024-01-17 16:19:24 +02:00

19 lines
321 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright (C) develp GmbH 2024 All Rights Reserved
set -euo pipefail
if [ "$#" -lt 2 ]; then
echo "Usage: $0 <ssh-host> <machine>"
exit 1
fi
ssh_host_before="$1"
machine="$2"
set -x
nixos-anywhere --flake ".#$machine" "$ssh_host_before"
echo "NixOS installation complete."
echo "All done."