Nix with other (immutable) distro
Hello, I am a Nix beginner. I am trying to create a config that I could deploy easily on different systems (cachyOS on gaming rig, fedora atomic on my laptop, etc.).
When it comes to packages invoked through $PATH, Nix already has priority, so it's obvious that the package I am running is the one provided by Nix.
Now let's say I am trying to configure a GUI application like Ghostty. On some systems, Ghostty is not present by default, and the Nix binary will always be used. But for example on the atomic Fedora image I have, Ghostty is already provided. Therefore, depending on how I invoke Ghostty (via app launcher, niri shortcut, or shell), in some cases the Nix binary will be running, and in others it will be the system's one.
Since my primary goal is to have a config that I can easiky reproduce everywhere, how should I handle this? Should I assume some packages are always provided by the system? Should I accept that I will work with different versions of the same package?
Thanks :)