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?

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

    There’s a couple ways to do it but I’m not great at container networking and tossing it into a VM with. Seperate physical Ethernet jack is more of a blunt instrument than I wanted. Really it’s more of an exercise to improve my skills than anything else.

    • hendrik@palaver.p3x.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      14 hours ago

      Sure. What I mainly do is use seperate user accounts for all the services so they can’t access each other’s data. That’s also what Linux distributions do anyway when setting up server software. I try not to give them any extra privileges and use whatever SystemD services offer to restrict stuff. I’ll make database access as strict as possible. Disable unneeded stuff, unnecessary open ports and then focus on having appropriate passwords, fail2ban and timely updates. I run most stuff bare metal and only use containers and VMs if it makes it easier or I feel it’s more risky than usual. I think that’s somewhat alright for a home server setup.