Using SOPS to hide the ip-address of the server in public repository?

No. Sops secrets are not available during eval. This is not intended to work. It comes up quite regularly.

What you could do is written here: Sops failing to start - #31 by dtannock

You can read the whole thread if you want to know why this does not work.