I think the least that distros can do, is allow listing all packages and system settings in config files like .toml rather than having to type in every single package to install, or click through system setting GUIs to setup. Would that require using a whole programming language or system like NIx?

While NixOS works much differently from most distros, that’s the only reason I use it: package and system settings in text files. If I fix something, it’s fixed permanently, I don’t need to hunt down files in random directories if I want to change a setting. If I ever need to reinstall the OS I don’t have to write dnf install every single damn package and manually setup all that up all over again. Having daily-drove Windows macOS & Fedora as throughout the years, my setups have felt hacky as well as houses of cards as I’ve wanted or had to set them up again (I don’t mean Fedora specifically, but distros in general).

Basically it feels insane that it’s the way most linux users and servers in the world operate. If I, a humble computer hobbyist can figure out Nix, why don’t more users do so, and why is Nix so niche?

  • ffhein
    link
    fedilink
    43 days ago

    If I, a humble computer hobbyist can figure out Nix, why don’t more users do so, and why is Nix so niche?

    My guess as to why this isn’t a more central feature of Linux distros is that this is not something most users need. If you need to reinstall the OS because you broke it, then a full system backup is probably more convenient, even if it’s less than optimal to back up packages which you could download. If you need to reinstall the OS because you want a clean slate when upgrading to a new version, then your package list for the old version could cause a lot of conflicts as maintainers regularly remove and add new packages.

    I have backed up my zsh, vim, tmux, etc. configs and written a few shell scripts which install them and download vim plugins etc. If I ever need to reinstall the OS I would use these. However, in the last 20 years since I ditched Windows I have reinstalled Linux exactly two times: Once because I was an idiot and didn’t have a proper backup when I accidentally formatted the wrong HDD, and once when I switched from Xubuntu to Fedora in which case a package list wouldn’t have been usable.

    • @iopq@lemmy.world
      link
      fedilink
      22 days ago

      I want to conveniently share setups between my desktop and laptop. If you do this manually you will find out one both have small differences

      At the same time, I may document that this computer works better with pipewire (or with pulse, depends on which one has issues) and commit to the repository