I have a NixOS machine deployed on Google compute engine using Colmena. (Remote build).
I have a custom app binary that is released to a private bucket on GCS.
I can SSH into my nixos machine and manually download the binary from GCS just fine. However, I can’t figure out how to install it as part of my NixOS configuration.
I tried using fetchurl
and a custom builder but the build sandbox messed with gsutil such that it wouldn’t authenticate properly and pull the binary.
I also tried SSHing in as a prestep to download the file to the VM first locally, but I then my derivation couldn’t find the local file for some reason. (I’m not sure if this is Colmena related or not).
How would people approach this deployment scenario?
Thanks!