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?

  • nixos_fan@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    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).

    • muusemuuse@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 hours ago

      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

      • nixos_fan@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        8 minutes ago

        The best way to limit the blast radius would be to have separate physical hardware per service, so there is always a tradeoff.

        I’m not sure what your questions and goals are, how do you currently deploy applications? Playing around with quadlets is probably the best idea here