It depends on your use case.
- If you expect your users to already have Nix installed, I would recommend using
nix-store --export
to create a .nar file andnix-store --import
to import andnix-env -i /nix/store/path
to install the resulting path. - If your users will not have Nix installed, you can package it with nix-bundle: