hi I’m still exploring stuff and I was thinking about nix, with all his stuff, what do you guys think? maybe someone with experience can tell me if I should stay away from that or could be a good choice for privacy, anonimity and security

  • alt@lemmy.ml
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    8 months ago

    Most distros are somewhat equal when it comes to privacy, anonymity and security; with the likes of Fedora and openSUSE known for taking it more seriously out of the box than the other ‘big bois’, while some smaller distros like Kicksecure are known for their best-in-class[1] hardening that they offer by default.

    As for NixOS, it’s really its own thing (together with Guix), and thus very different from any other distros. If you conquer it, you would be delightfully met by a system that enables you to do things unheard of in other distros. However, the learning curve is very steep. And perhaps even hardening it to the level that Fedora or openSUSE provide by default might not be trivial.


    1. Qubes OS is technically not a Linux distro. But it’s worth mentioning as one generally tends to run Linux within a qube (read: VM), and in regards to security and privacy; Qubes OS is simply unmatched, period.
  • Euphoma@lemmy.ml
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    8 months ago

    If you don’t have much experience with linux you should not use nixos. I don’t think nixos is any different from debian or fedora in privacy, anonymity, or security. Many people even reduce their privacy by putting their config on github.

    • toastal@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      8 months ago

      I mean yes you reduce your privacy by interacting with Microsoft GitHub in general, but posting your Nix config to the public isn’t much of a privacy concern since you shouldn’t have any plaintext secrets anyhow as a best practice since it would be compiled into the Nix store. There are a couple of different ways to encrypt secrets, as well as just not committing private *.nix to a public repository.

      • Euphoma@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        8 months ago

        Other people will know what bootloader you use, what apps you use, etc. Yeah I guess its not a huge concern, but its something.

        • Gooey0210@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          It’s like giving a map of your infrastructure to a hacker, but it depends on your thread model. Most of the attacks on home servers are automated, so it shouldn’t be a consern

          Another thing if your thread model is different, then the situation is not that good, but you can encrypt a lot of stuff, especially when you’re making your config reproducible

    • Gooey0210@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      Nixos can be more secure than classic distros. First of all, you have atomic states of your system, so nothing can be added without rebuilding the whole system and giving it a new name

      Also you can do impermanence to ensure nothing can slip in for sure, because the system will be recreated every boot

  • Chais@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    8 months ago

    I don’t know what gave you the idea that a particular distro would be an especially good/bad choice for privacy, etc. They’re all GNU/Linux with only minor differences in compile-time options in the kernel and different defaults in user-space. But they’re just that, defaults. You can reconfigure them to your preference.

    With that out of the way, the issue NixOS attempts to address is reproducibility. You get a central configuration infrastructure that defines everything, from partition layout, through user creation and package installation to software configuration. The central idea being that migrating to a new machine or setting up a new development environment should only take a few commands.
    What you do with that is up to you. You can barricade the whole system if you like. The defaults are sane, but not overly focused on privacy, etc.
    Also it’s quite a learning curve as the documentation/wiki is incomplete and/or outdated.

    • doomkernel@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      Yeah Nix documentation kind of sucks right now. There are like a 10 different ways to set-up flakes

            • Atemu@lemmy.ml
              link
              fedilink
              arrow-up
              5
              ·
              8 months ago

              No, not obviously.

              People new to Nix/NixOS always seem to think that flakes are some kind of fundamental shift or something and if you don’t use flakes, you’re not going to be ready for the future or whatever.
              No, they’re not. They’re “just” a standardised method of composing separate Nix projects.

              In the most common NixOS case (and especially when starting out) you have exactly one external Nix project you depend on and that’s Nixpkgs. Flakes provide very little (if any) benefit in this specific case.

              If you’re starting out, you don’t need to care one bit about flakes, experimental features and the documentation of features that are not intended to be commonly used yet (especially not for beginners).

    • Gooey0210@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      The wiki is not even recommended, since some time already nobody has access to the wiki, even to put a banner “stay away, everything is not working and outdated”

      • Chais@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        8 months ago

        So we have to piece information together from the manual and random blogs? Like cavemen? Or worse, like Windows users??

  • jlow (he/him)@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    One of my admin friends said it’s not really made with desktop users in mind but more for people who need to set up (lots of) computers / servers quite often (= admins). If you’re not planning on distro hopping or reinstalling your system all the time it doesn’t really do anything for you that any other distro plus a good backup strategy already does. Plus you can use the Nix package manager without installing NixOS on the distro you’re on right now, if you wanna check it out.

    How do people here feel about this evaluation?

  • random65837@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    8 months ago

    Nix is awesome for experienced Linux users, AND that want to constantly play with their config file. If you do things and install things at the user level (which way too many do) then you’ve removed the benefit. That said, do it right, and recovering, moving, or duplicating your system could possibly be any faster/smoother.

    Not saying it’s hard to learn, but if you’re not used to the CLI and editing config files, I’d start with it in a VM. If you decide you like it after you’ve totally set it up there, then the magic of Nix comes when you install it for real and just redeploy an exact clone thanks to the config file.

    • Gooey0210@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      If you do things and install things at the user level (which way too many do) then you’ve removed the benefit.

      ? 😅 nix-shell, nix-env? also home-manager? I’m running some machines user only, no root

  • coolboole@infosec.pub
    cake
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    8 months ago

    NixOS can be a real pain when it comes to pre boot encryption and secure boot. If you’re intending on going deep into hardware security I’d avoid it.