Zero-config cachix on nix-portable

We have a project that contains code that can be executed on some relevant HPC systems with a command like this

./nix-portable nix run github:myaccount/myproject -- my-arg-2 my-arg-2

The project also has a cachix cache, which is ignored by the above command.

  • Is it possible to arrange for the cachix cache to be used by the above command without the user having to configure anything?
  • If not, what is the closest we can get to a foolproof, zero-config way of having the user benefit from the cachix cache in this setup?

https://nixos.wiki/wiki/Binary_Cache#Binary_cache_hint_in_Flakes

1 Like