4 ms·
This is not true and no hacks are needed. Since nix only depends on /nix it can be used in combination with ANY linux OS. Just so that noone runs into issues.
by danieldk 5y ago
This is not true and no hacks are needed. Since nix only depends on /nix it can be used in combination with ANY linux OS.
Just so that noone runs into issues. This is not completely true. E.g. you cannot use Nix on Fedora Silverblue, because it also uses an immutable filesystem and you cannot make top-level directories like /nix without ugly hacks.
Also, multi-user Nix does not work on most distributions that enforce an SELinux policy (e.g. Fedora/CentOS/RHEL). Incorrect SELinux contexts get set on store files/directories. Single-user Nix typically works fine though.
(These issues can be worked around with rootless Nix, but that is much more high-friction than a globally installed Nix.)