diff --git a/digitalocean/create-droplet.sh b/digitalocean/create-droplet.sh old mode 100644 new mode 100755 index e596845..c330cce --- a/digitalocean/create-droplet.sh +++ b/digitalocean/create-droplet.sh @@ -1,11 +1,20 @@ +#! /usr/bin/env nix-shell +#! nix-shell -i bash -p bash +set -xe +NAME="test.nidus.cloud" +PROJECT="1782f0e0-0968-4fe2-ac7d-192584ec7ce5" +REGION="sfo3" +SIZE="s-1vcpu-2gb" +#SIZE="s-1vcpu-1gb" \ +SSH_KEYS="48777034,46710608" +TAGS="nixos,test" doctl compute droplet create \ - "test.nidus.cloud" \ + $NAME \ --enable-ipv6 \ --image debian-12-x64 \ - --project-id ce2159e8-02f5-4169-8943-f34ccf812d23 \ - --region sfo3 \ - --size s-1vcpu-2gb \ - --ssh-keys 48777034,46710608 \ - --tag-name nixos \ + --project-id $PROJECT\ + --region $REGION \ + --size $SIZE\ + --ssh-keys $SSH_KEYS\ + --tag-name $TAGS \ --wait -# --size s-1vcpu-1gb \