There is a way to install nix without completely disabling selinux

I made a guide a while back that makes nix work with selinux quite well. This method also involves using the multi user install too and not the single user install. There is a point where you temporarly disable SELinux because the installer won’t run if it detects selinux is running but if you either type sudo setenforce Enforcing or simply reboot, it will be enabled again. I haven’t had any problems that I remember using this guide. This works on fedora workstation, fedora silverblue, and rocky, centos and alma linux. Give it a try for yourself and see how it goes.

5 Likes