feat: add k3s cluster

This commit is contained in:
2024-08-17 18:06:33 +08:00
parent f78895ea62
commit 3923255ddc
8 changed files with 57 additions and 20 deletions

View File

@@ -43,11 +43,8 @@ function main() {
sed -i -e "\$i${LINE}" "./keys.nix"
agenix --rekey
popd
echo "${tmp_dir}"
echo "Run the command: nix run github:nix-community/nixos-anywhere -- --flake ".#${MACHINE_NAME}" --extra-files "${tmp_dir}" --print-build-logs root@${MACHINE_IP}"
read -n 1
# Deploy the systems!
# nix run github:nix-community/nixos-anywhere -- --flake ".#${MACHINE_NAME}" --extra-files "${tmp_dir}" --print-build-logs yadunut@${MACHINE_IP}
nix run github:nix-community/nixos-anywhere -- --flake ".#${MACHINE_NAME}" --extra-files "${tmp_dir}" --print-build-logs yadunut@${MACHINE_IP}
}
main "$@"