Home-manager and system nix matching (non-nixos)

Is there an ideal way to match the nix itself between system and home-manager?

I normally install nix via determinate installer and then switch to my home-manager profile which provides the configured nix on my user. One downside here is that nix installed on root’s profile will remain. Is there an easy way to sync them? for example replacing the root’s nix profile with the derivation configure in home-manager?

Don’t install nix via home-manager.

I need it in home-manager so it can be passed to other programs that require nix such as nix-direnv

Your only option then is to pass absolute paths around. hm config cannot control system config. Not sure why you need to pass anything to nix-direnv, though.

I don’t really need hm to control it, just a way to set system nix to the same derivation I have in home-manager