• ne0phyte@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      21 days ago

      The code of the packages is the documentation. So the newcomers better start learning Nix language and reading the paper about how Nix works under the hood before they get started! /s

      But seriously, I used NixOs for about 2 years almost 10 years ago and while it was/is fascinating when you have everything setup, getting there and maintaining everything across so many packages that each have their own way of configuring them took hundreds of hours. I’m back on Arch using a custom tool I wrote to fully manage my configs, packages, dotfiles etc.

      The way I remember it is that there is no consistency across Nix packages and it all feels like a giant puzzle for people who enjoy spending time configuring more than actually using the computer. And I say that as someone who actually enjoyed getting into that when I had unlimited time.

      • iopq@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        20 days ago

        Okay, but when I figure it out on my desktop I just copy paste the exact snippet to my laptop and it just works.

        Do you think I can remember the steps I took to fix my issue with Ubuntu? I don’t remember what file I modified and where I put some config file.

        • ne0phyte@feddit.org
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          20 days ago

          But to be fair, Nix is not the only answer to that. There are lots of tools for just dotfiles but you can also build something using e.g. ansible to manage everything.

          All my computers have their config in a git repo. That includes users, packages, services, dotfiles, /etc configs and so on. I used ansible before writing my own tool. I can install Arch from scratch and only need to partition, run one script and then apply my config on first boot using my tool to have my system restored. I know it’s not as declarative and absolute/reproducible as Nix, but it works and it’s way less painful than my last attempt at giving NixOS a go.

          • rumba@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            20 days ago

            I’m about neck deep in ancible/salt/chef over the years at work.

            They are great tools for simple configurations where multiple people are needed in the kitchen, but they require meticulous curation.

            But I buy a new laptop, I slap in my USB vanilla Nix ISO, drop two config files in /etc/nixos call rebuild and I’m done.

            Updating my packages to latest is a single command. Adding a package is a single line. And the most powerful thing, nix-shell -p whatever install whatever for that session. I don’t even bother putting most stuff into my declaritive configs, nix-shell -p ffmpeg, when I exit it’s no longer available.

            And if I do something awful to my config and brick it, it’s just one grub menu to go back to the previous version.