• LucidNightmare@lemm.ee
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I’m using Debian right now, and it has been the most stable, and battery efficient distro I’ve used on my laptop. I see NixOS a lot on here, and went to look it up. I couldn’t discern really what makes it good, so may I ask for your “review” of it compared to Debian?

    • pimeys@lemmy.nauk.io
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      If you happen to customize your OS a lot, with NixOS you can define everything from one configuration: all your packages, your shell aliases, kernel parameters or for example the desktop wallpaper.

      You can push this config to GitHub and clone it to another NixOS machine and that one will have exactly the same packages, kernel parameters, shell aliases and wallpaper. Even the package versions, including all the libraries will be the same everywhere.

      You can even patch your tools from these configs, have custom kernels and go really crazy. When you commit your changes, they work exactly the same in all your machines. And on boot, you get a list of configurations, so you can boot to the previous config of your current changes broke something, go fix what you broke and retry.

      And, with nix the tool, your team can provide the flake.nix and flake.lock files in the software project you all work for. It will then make sure everybody gets the right versions from the dependencies, compilers, linters, etc. If it works for one, it works for all.

      Nix the tool let’s you try this out in systems like other Linux distros or removed. NixOS is an OS that is taking a step further and requiring you to define the whole system with Nix.

      Oh, and a sibling project Home Manager is great for reproducible dotfiles.

      • LucidNightmare@lemm.ee
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Thank you so very much for your review. It helped me understand it a lot more than their webpage did! I’m a casual when it comes to Linux in that I just want to set it up, and never touch it again unless I get bored or have to. This sounds like a tinkerer’s dream OS, and that is awesome in itself. It’s just more technical than I have the time for right now.

    • smollittlefrog@lemdro.id
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      1 year ago

      Adding a little to the other comment: Nix packages are fully reproducible, so you can verify they’re built from the source they’re claimed to be. That makes package distribution more secure. (E.g. Debian could add malicious code to some packages before compiling them, and you’d never know. Not saying they do that, but they’re able to.)

      • LucidNightmare@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Thank you for the further explanation! I was able to see from the above that it may not be an OS for a casual Linux user like myself, but I think it is awesome for someone who wants to tinker to their hearts desire and make their system their own!

    • pimeys@lemmy.nauk.io
      link
      fedilink
      arrow-up
      4
      ·
      edit-2
      1 year ago

      Maybe adding a warning to my previous comment. Going full-on NixOS is like learning vim for the first time. It is complex, takes a lot of time and you need to re-learn lots of things. Maybe evaluate are the good parts enough for you to spend a year re-learning how you use computers worth it. For me it definitely was.