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
    5
    ·
    13 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
      ·
      12 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
        ·
        10 hours 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

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

          I have one virtual machine for home assistant. I’m trying to break down into containers like the other services I have running on here because the idle power consumption has always been higher on this Ryzen rig with the virtual machine than idle containers. It also means if home assistant has to compile new firmware, it can use all available cores and RAM that it needs and then give it back when it’s done. Would that have to worry about borrowing resources and maybe or maybe not giving them back afterward like it would with a VM