Disable apparmor, SELinux and any other tools like this.
Alternatively create appropriate profiles that make nix work.
I have no experience with either. At a former workplace the goto-solution for all SElinux related problems was a
setenforce Permissive instead of trying to understand whats going on.
There’s more documentation here: Security - AppArmor | Ubuntu
If you don’t care for the security aspect, according to that doc you can just:
sudo systemctl stop apparmor.service sudo systemctl disable apparmor.service
As unfortunate as it is, I can also attest that this is indeed the industry-standard solution.
I uninstall the NIX and install again with
That will resolve all my permission issues.