Comment

Comment by throwing_away

> eliminating the filesystem (other than home and var) as a big ol' chunk of globally mutable state is so liberating

I'm about a week into the (very painful) process of switching to NixOS.

This is pretty much the promise of NixOS that got me interested, but it seems to be that it's not really true.

NixOS is just running a regular kernel that does regular linux security things. If you want AppArmor or SELinux you still have to configure it yourself.

If you want a sandbox on NixOS, your options are still bubblewrap/firejail, proot, or flatpak. Or of course full virtualization with libvirt.

The NixOS "containers" are just systemd-nspawn which (if I understand correctly) doesn't really offer more security than a properly permissioned user.

I suspect that if you installed a malicious binary in a NixOS package, you'd be just as compromised as you would installing something malicious from AUR.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton