Hi everyone!

I saw that NixOS is getting popularity recently. I really have no idea why and how this OS works. Can you guys help me understanding all of this ?

Thanks !

  • @[email protected]
    link
    fedilink
    261 year ago

    I used NixOS for a couple of years. My experience is like this:

    1. It is a rolling release (mostly)
    2. You write a declarative configuration for your system, e.g., my config will say I want Neovim with certain plugins, and I can also include my Neovim configuration
    3. It is stable, and when it breaks it is easy to go back
    4. Packages are mostly bleeding edge
    • Atemu
      link
      fedilink
      71 year ago

      Note that there’s both the rolling unstable channel and a bi-annual stable release channel.

    • ★ L0WighOP
      link
      fedilink
      61 year ago

      The configuration stuff seems great. I guess it reduce the struggle of porting a full config from one pc to another right ?

      • @[email protected]
        link
        fedilink
        81 year ago

        Yes absolutely. It is really great. It is also a source of frustration, e.g., missing configuration options, non-obvious options and so on. Overall it works well.

      • Sr Estegosaurio
        link
        fedilink
        11 year ago

        You can even define configurations for different systems/hosts/users from a single place. I’ev atomized my config and I can reuse lots of parts for my different machines. Also my user config is nearly identical (except hardware specific things).

    • SirNuke
      link
      fedilink
      21 year ago

      Are you still using it and happy with it? I’ve been increasingly setting single purpose dev VMs in server, and a declarative configuration system would make the process of spinning them up faster and more robust. My current shell script system is clunky, and I’ve been looking at Ansible.

      • @[email protected]
        link
        fedilink
        61 year ago

        Not using it anymore. Although I’m thinking about going back to it. The NixOS learning curve is a bit more steep than most other distros.

          • @[email protected]
            link
            fedilink
            11 year ago
            1. Some level of frustration with the nix language and the configuration
            2. Wanting to try various obscure Python packages

            Nothing too major. Just already knowing how to make things work in other distros vs investing more time into learning to do it the NixOS way.

          • @[email protected]
            link
            fedilink
            English
            11 year ago

            I have been using Arch and Fedora. Considering Fedora Silverblue too. Everything is working well, so not in a rush to distro hop.

    • Arthur BesseM
      link
      fedilink
      301 year ago

      this comment reads suspiciously like it was written by an LLM (eg ChatGPT). was it? please don’t do that!

      • flustered
        link
        fedilink
        51 year ago

        I tried asking for sources before, and they were all wrong, either non-existant or not even about the topic, some were just random urls.

        • Arthur BesseM
          link
          fedilink
          111 year ago

          Do LLMs give citations?

          do they ever!

          (The citations in this comment appear to be all real links about NixOS, but they are not particularly relevant to the places in the comment where they’re cited.)

        • Clairvoidance
          link
          fedilink
          4
          edit-2
          1 year ago

          Bing ‘chat mode’ (read: hooked GPT-4 to their search engine) does in essentially this format.

        • DevCakes
          link
          fedilink
          01 year ago

          Yes, and it’s actually a problem. They sometime generate realistic looking, fake citations.

        • RosalynKirk
          link
          fedilink
          351 year ago

          If OP wanted a response from an LLM, they would have typed their question into an LLM. The least you could do is label it as such.

          • @[email protected]
            link
            fedilink
            -25
            edit-2
            1 year ago

            I use an LLM to edit everything I write. Does this mean I have to label everything as LLM-generated? I am the one doing the job, but in the end, I’m just copy-pasting the output from the LLM.

            • @[email protected]
              link
              fedilink
              181 year ago

              Rule or not, it’s pretty lame, look at the size of your post compared to how much info it gives, had you copied a article from some basic linux news stite, it would have given mostly the same output, now think about what linking a page to an article about nixos as a response to op trying to start a conversation about it would look like, rude.

              • @[email protected]
                link
                fedilink
                -19
                edit-2
                1 year ago

                Why don’t you label your name in every answer, so we can check if you are hallucinating or making things up?

                • @[email protected]M
                  link
                  fedilink
                  22
                  edit-2
                  1 year ago

                  Why don’t you label your name in every answer

                  You mean like a username that is listed in the header of every post and comment?

                • 133arc585
                  link
                  fedilink
                  12
                  edit-2
                  1 year ago

                  Why don’t you label your name in every answer, so we can check if you are hallucinating or making things up?

                  What?

                  I’m also curious why you feel the need to have an LLM edit your writing. What did you do before an LLM? And what benefit do you feel the LLM writing your comments is offering you and those reading your comments?

            • RosalynKirk
              link
              fedilink
              131 year ago

              Using an LLM to autocorrect your own words is not the same as copy-pasting an LLM response.

            • Zamboniman
              link
              fedilink
              12
              edit-2
              1 year ago

              I use an LLM to edit everything I write.

              May I invite you to consider the pitfalls of such an approach?

              Does this mean I have to label everything as LLM-generated?

              Yes, that would be reasonable imo

        • Arthur BesseM
          link
          fedilink
          261 year ago

          thanks for clarifying. i’m deleting your generated comment per rule 4 (spamming); if another admin wants to undelete it i would be surprised.

          please do not post LLM-authored comments without clearly labeling them as such. imo this is common sense, and doesn’t need its own rule, rule 4 is sufficient.

        • @[email protected]M
          link
          fedilink
          17
          edit-2
          1 year ago

          The admins did not remove the comment, a community mod did. Mods can impose further restrictions on their communities on top of instance wide rules (within reason of course), including banning LLMs. Lemmy.ml at least does not have a blanket ban on LLMs, but generally it’s expected that, 1, you should not post LLMs excessively, we mainly want to host discussions by humans, 2, you should disclose it’s from an LLM and which one it’s from, and preferably add to what it says with your own comments or analysis. If it’s a mix of LLM and your own writing, say so at the start of the comment, but if the community directly disallows LLMs then you shouldn’t post it there at all.

          • @[email protected]
            link
            fedilink
            -18
            edit-2
            1 year ago

            So basically promote software for free? No thanks, bye. I won’t attribute everything I write to an LLM.

        • r00ty
          link
          fedilink
          161 year ago

          I don’t know whether just using an LLM is a problem. But in your case I would say the fact you used one and didn’t indicate you did. If you indicated the answer came from an LLM, then the trust in the answer could be weighted accordingly by each user.

          That’s my opinion at any rate.

        • @[email protected]
          link
          fedilink
          61 year ago

          Under the soon to be enacted EU AI laws such a bot would be limited-risk application (interaction with humans), the requirements for a text bot aren’t particularly high but also non-negotiable from a best practice POV: Stating front and centre that it’s an AI generated post. It’s also best practice to fulfil criteria necessary for high-risk systems voluntarily, the more you can fulfil I bet the less hostile people are going to be.

          The library of congress has an executive summary of the thing.

          (EU sources alas are a bit iffy at the moment there’s the commission version and the parliament amendments, haven’t seen a consolidated version yet. When will politicians start using proper VCS)

          • @[email protected]
            link
            fedilink
            -13
            edit-2
            1 year ago

            I use an LLM to edit everything I write. Does this mean I have to label everything as LLM-generated? I am the one doing the job, but in the end, I’m just copy-pasting the output from the LLM.

            • @[email protected]
              link
              fedilink
              121 year ago

              If your sources don’t match the claims no you’re not doing “the job” necessary to classify things as LLM-assisted instead of LLM-generated.

    • @[email protected]
      link
      fedilink
      31 year ago

      I would love to have #4 on Arch / EndeavourOS.I recently had my Scribus install (SVN from the AUR) break due to Arch moving to some newer library. There really isn’t an easy way to solve this AFAIK.

    • @ItsYourBoyHalo
      link
      21 year ago

      Do you use Nix, personally? Also, it’s crazy that I found this post while thinking about distro hopping.

      • @FleaCatcher
        link
        241 year ago

        The above poster seems to use more ChatGPT than Nix, personally.

    • operator
      link
      fedilink
      01 year ago

      Nice summary, appreciate the links. Sounds like Bing AI thought ;)

  • @[email protected]
    link
    fedilink
    19
    edit-2
    1 year ago

    Here’s the straightforward version of why I use it:

    1. The entire state of your operating system is defined in a config file, and changes are made by changing the config file. This makes it super easy to reproduce your exact system many times and to know where all the many different configuration elements that describe your system are located.

    2. Updates are applied atomically, so you don’t have to worry about interrupting the update process and if it fails, the previous state of your system is still bootable. By default every time you change something, you get another option in the boot menu to roll back to.

    3. Making container-like sub systems is super easy when you’re familiar with nix, so you can have as many different enclaves as you like for different software versions, development environments, desktop setups, whatever without taking a performance hit. Old versions of stuff are very accessible without breaking your new stuff.

    4. The package manager has a lot of software and accessing nonfree stuff is straightforward. Guix looks rad, but nix ended up being the more practical compromise for my usecase. I didn’t want to have to package a heap of software the moment I made the switch.

    • @[email protected]
      link
      fedilink
      51 year ago

      You forgot to mention: cross-compiling binaries for other architectures has never been so easy. You can even make them static builds.

      It’s breathed new life into my old synology NAS which is stuck on an old Linux 3 kernel.

    • @[email protected]
      link
      fedilink
      21 year ago

      This very much. I used to have lots of unchecked config and state files everywhere on Arch. Now everything is checked in and wiped on boot so if something breaks after a reboot i know what broke.

      Like how the opengl rendering did due to nixpkgs version differences

  • fazo96
    link
    fedilink
    181 year ago

    I have been using for years on servers. My lemmy instance is hosted on it.

    Although for desktop I had too many issues back in 2019 so I ended up back to Arch Linux and then EndeavourOS

    Would be fun to try again to use it on desktop

    • @[email protected]
      link
      fedilink
      2
      edit-2
      1 year ago

      I think I will give it a try on a server first, I don’t have a playbook or script for a reproducible set up (yet), so I may as well use Nix to see if it’s worth the hype

  • @le_saucisson_masque
    link
    171 year ago

    I keep seeing trends with Linux distribution like teenager looking for new fashion.

    I think it’s mostly the very young Linux user who hope from one distribution to the another over and over whereas many just stick with what they got : Ubuntu, Debian, mint, maybe fedora.

    NixOS is certainly interesting tho.

    • @donnachaidh
      link
      31 year ago

      I’m pretty stable — I’ve just gone between Ubuntu and Arch — and other distros don’t really seem different enough to actually change how I use my computer. I’d just install the WM of my choice, then just use RPM instead of pacman or whatever. The actual premise of NixOS is intriguingly different. Saying what you want the system to be, rather than saying how to change the system.

  • mrh
    link
    fedilink
    15
    edit-2
    1 year ago

    I daily drive GNU Guix instead, and I would strongly recommend any emacs and/or lisp enthusiasts interested in the benefits of functional, reproducible, declarative, and hackable system management to give it a try!

    • NCR Ranger
      link
      fedilink
      41 year ago

      Do you run the gnu guix distro or just use the package manager? Because iirc it uses only free software, even for drivers. So I imagine it is not that easy to find compatible hardware.

      • mrh
        link
        fedilink
        4
        edit-2
        1 year ago

        I run the complete system. It’s true that the standard iso comes with the linux-libre kernel and the standard channel (think repo) contains only free software. However there is the nonguix channel which comes with the full linux kernel, and all the proprietary drivers you could ask for.

        Nonguix offer an ISO with the full kernel too in case you have a proprietary wifi card and don’t have ethernet for the initial setup. The nonguix README I think is pretty clear, but Systemcrafters also made an excellent guide for doing this.

        My wifi card unfortunately requires proprietary drivers and I have personally never had an issue with guix + nonguix for all my software needs, proprietary and otherwise.

        Hope that helps profligate!

        • @[email protected]
          link
          fedilink
          11 year ago

          Does it actually require proprietary drivers or just proprietary firmware? I don’t know of any wifi cards that actually require proprietary drivers on Linux.

          • @rrobin
            link
            11 year ago

            I run the GUIX system distribution in all my machines - other than the initial install being a bit harder it is great.

            Firmware blobs yes. The default GUIX kernel patches out all proprietary blobs, but the nonguix kernel has them. I do have one machine where I also build the kernel package with my own config because the the wifi driver is not build by default in the linux kernel.

            Did a quick search here, besides firmware, nonguix has packages for the nonfree nvidia drivers, brother printer driver, unrar.

            In addition nonguix also packages software that GUIX does not, e.g. firefox, or third party binaries:

            https://gitlab.com/nonguix/nonguix/-/tree/master/nongnu/packages

      • mrh
        link
        fedilink
        11 year ago

        It’s a source-based distribution like Arch so packages are as up to date as the package maintainers keep them. Of course anybody can go in and submit a newer version of a package if the original packager has been slacking on updating. You can also use your own custom version of the package by just copying the package definition, bumping up the version number, and then installing it with guix package -f my-custom-package.scm

  • moldyringwald
    link
    fedilink
    111 year ago

    It’s insanely stable but you have to have a lot of linux/programming knowledge to do even the simplest things like installing/updating your software or making little tweaks. I played with it for hours the other day and I’m just too dumb to figure it out lol I think it’s just a super stable highly customizable distro for power users and a lot of people like that. If you can get over the learning curve it’s a pretty powerful and unique os

    • @Chobbes
      link
      41 year ago

      It’s kind of funny because I’d put NixOS on a complete newbies computer for sure, and recommend it to an expert… But I’m less sure if I’d tell a random mid-intermediate Linux user to switch.

      Like if Grandma wants Linux on their computer to do some internet browsing for some reason… I’d absolutely put NixOS on it because it’s easy to manage the system for them… But somebody who is a little familiar with Linux already might be more confused about the differences. It’s kind of the ultimate beginner distro and the ultimate power-user distro, but a bit awkward between those extremes, haha.

    • Glome
      link
      fedilink
      11 year ago

      It’s true that it can be a powerful distro but I’ve also heard from some users that the advanced-level documentation is lacking and only limited to forums and source code. I think maybe if the documentation was more thorough I would try nixos.

    • RosalynKirk
      link
      fedilink
      -101 year ago

      you have to have a lot of linux/programming knowledge to do even the simplest things like installing/updating your software

      So, pretty much like any other distro

        • RosalynKirk
          link
          fedilink
          01 year ago

          Weird, every distro I’ve tried either has no management, or doesn’t work. Just spins around loading. “Uninstalling” packages does nothing but remove them from the package manager.

  • Litanys
    link
    fedilink
    English
    91 year ago

    I’ve been using it for over a year and love it. A config file for your entire system, and built in rollbacks anytime something goes wrong. One language to configure everything, although in practice that doesn’t always work. But I love it.

    Some others have started why it works, here is some how. Nixos completely disregards the fhs. Packages don’t install to anywhere standard, every package and configuration change gets it’s on directory in /nix/store but through smart use of tracking everything there, it symlinks all those files to proper places and sets up the environment for them to know where libraries are.

    This is then also why you don’t need sudo privileges to install things. Your profile has an environment that is aware of your users packages and configurations, the system itself isn’t effected because everything is symlinked.

    Then because every update means new directories in /nix/store you can role back to your last configuration because plasma broke something or whatever.

    However, it’s a LOT to learn. Best place I know of is https://piped.video/watch?v=AGVXJ-TIv3Y&t=0

    This guy did a good job for me. Hope this helps!

  • Herbstzeitlose
    link
    fedilink
    71 year ago

    Because it’s the latest Cool Nerd Thing™ like Arch before it, and Gentoo before that. Most of the people raving about it probably don’t have much use for its features.

    • @[email protected]
      link
      fedilink
      101 year ago

      The features themselves are very useful for basically any user. Whether they are worth the non-standardness and issues that come with it is another question.

    • Captain Beyond
      link
      fedilink
      11 year ago

      I’m using GNU Guix System which is similar to NixOS and I think I can safely say I do appreciate Guix’s features that set it apart from a traditional GNU/Linux distro or package manager.

    • ___hulk
      link
      fedilink
      -11 year ago

      Solution without a problem. A cool solution but yeah.

      • commandar
        link
        fedilink
        51 year ago

        I don’t think that’s accurate, personally.

        Declarative orchestration systems have been around for years and have a very real use case when needing to stand up servers in a replicable way. Nix is applying that approach at the system level.

        I’m not entirely sold on wanting to put that level of effort into a personal desktop, but I don’t think it’s at all fair to say that it’s not addressing real problems.

  • ambrosia
    link
    fedilink
    71 year ago

    because it’s good as hell and i don’t want to have to spend time having to rebuild and reconfigure fresh OS installs or risk breakage when I could just use a config file that I know already works

  • @joshthetechie
    link
    71 year ago

    People love Nix because of the OS configuration based around a single config file. Essentially, you define your system configuration in this file, including installed programs, then you rebuild your system based on that configuration.

    The beauty here is that you can easily move this file to another machine running NixOS and reproduce your configuration there. You can also roll back changes by simply rebooting and choosing the last known good build and you’re back in business.