Use my New Repo
I moved all of my nix stuff to This
This page is for the nix selinux installers. Click here to go to the main page. The regular installer makes a backup of the default of nix in /opt/nb just like the installers here. There are commands to run the nix with selinux installers on the main nix installers page too
(also works for RHEL and its clones too)
Please note that these instructions are not offically supported or condoned by Nix and are not guaranteed to always work, but from my testing everything seems to work perfectly fine.
This is my modified version of the documentation here
These steps may not be required if NixOS/nix#2374 is resolved.
When this happens sucessfully for your, report it to Issues as a successfull test
When this fails for you, report it as a bug.
Want to improve this documentation, submit a request
Copy and paste the correct installer for your linux distro into the terminal to install
wget https://raw.githubusercontent.com/dnkmmr69420/nix-with-selinux/main/regular-installer.sh && chmod a+x ./regular-installer.sh && ./regular-installer.sh ; rm ./regular-installer.sh
wget https://raw.githubusercontent.com/dnkmmr69420/nix-with-selinux/main/silverblue-installer.sh && chmod a+x ./silverblue-installer.sh && ./silverblue-installer.sh ; rm ./silverblue-installer.sh
Ublue nix installer Currently doesn't work
This installer is a modified version of mine and it is meant for ublue's bluefin but should run fine on regular silverblue and other ublue spins.
DON'T USE THIS AT THE MOMENT SINCE IT CURRENTLY DOES NOT WORK. You are welcome to test it but do it in a vm.
wget https://raw.githubusercontent.com/ublue-os/bluefin/main/usr/bin/ublue-nix-install && chmod a+x ./ublue-nix-install && ./ublue-nix-install ; rm ./ublue-nix-install
thanks castrojo
I gave it its own readme to make this guide less cluttered. Click on the link above to take you to that page.
Want to uninstall nix? I made uninstallers for it here.
It has its own guide
add this to the end of ~/.bashrc
XDG_DATA_DIRS="$HOME/.nix-profile/share:/nix/var/nix/profiles/default/share:$XDG_DATA_DIRS"
type this command
sudo wget -P /etc/profile.d https://raw.githubusercontent.com/dnkmmr69420/nix-installers/main/nix-app-icons.sh