I’m getting ready to rebuild the home server and was going to go back to fedora server, but I’m seeing a lot of interest around NixOS lately and figure this might be a good opportunity to learn about it.
But I’m concerned about security in this system. It seems to have no fully functional SElinux or apparmor layer so any long running services that talk to the internet would be left in a vulnerable state without that fallback layer of protection.
Am I being paranoid here?
You can use systemd hardening to secure your services. There are also nixos containers, although I haven’t delved into them and can’t tell you much about them. You can also deploy oci containers in various ways (I’d recommend quadlet-nix).
I do have some containers I was going to deploy, though those I’m going to need to crash course rootless vs rootful security vs network complexity and performance, but the general idea of this is I can just leave it alone and if something compromises it, the blast radius will be limited until I notice and catch it on the firewall doing something sus
I’ve enjoyed NIX, but I’d play with on a spare system or VM before using it on anything you need to be reliable, as it has lots of quirks that are good to know about before dailying it. I’d check out Vimjoyer on the tube if you haven’t already.
As for SELinux and AppArmor, how important that is really depends on your setup, it’s not something I personally concern myself with much, but I maintain as small an attack surface as possible.


