NixOS 26.11

(nixos.org)

206 points | by lostmsu 2 hours ago

10 comments

  • eblanshey 1 hour ago
    NixOS is, in my opinion, the most AI-ready operating system. It eliminates the fear of letting AI's wreak havoc on your system and render it unbootable, as rollbacks are built-in. Combine it with a good personal file backup system like borg and you're golden. My days of tinkering to get things to work in Linux are over, and that makes me happy.

    In the future I can see something like NixOS going mainstream by hiding all the scripting behind "Advanced" settings, and letting users control their OS using AI. I'm actually surprised I haven't seen that implemented yet, as I think it has a lot of potential.

    • pkulak 1 hour ago
      I got heavy into NixOS pre-ai, in like 2020, but I agree, it's an ABSOLUTE joy now. My entire OS is custom built to my workflow, down to every little step. I have custom scripts and services all over the place removing friction. And it's not even chaos! My whole config is logically laid out and I understand every single line, with every module and feature in it's own little spot. And as soon as I notice something about my setup I don't like: I throw an agent at it. If I want to try some software that only lives in github, an agent packages it for me. If I don't like it: abandon the change and rebuild.

      I even had an agent build it's own sandbox. It's a systemd container that pulls in most of my host config, but only has access to a couple directories in my real home. There are so many "container/vm for your agent" projects on github: I built my own in an hour. The file is about 100 lines long; that's it.

      Every change I make is committed and pushed. I have my OS history going back 6 years. My laptop and servers stay in sync with my setup for free. If I buy a new laptop (maybe someday), setup takes an hour, almost all unattended.

      • pimeys 5 minutes ago
        Yep. Same. And think about deploying all your servers with Nix/NixOS. Including vllm that needs tons of patches to work fast and correct. And all your derivations are in version control. You can prompt changes, test them locally, deploy fearlessly.
      • nickjj 45 minutes ago
        I have something similar except I don't use AI and I'm using Arch Linux, but it also works with WSL 2 in Windows and supports macOS for the non-GUI related packages / config.

        It's nice to have a personal dev box and a travel laptop both using the same set up with tiny differences and then being able to do the same for CLI tools on a work laptop running within macOS.

        It's just a single non-committed config file and a committed shell script with no git forks needed to customize it https://github.com/nickjj/dotfriedrice. A bunch of friends are using it and hundreds of others based on GitHub's stats.

        Since I backup my home directory I can blow out and create a new system in however long it takes to run through the Arch installer and then invoke 1 command to set everything up. About 10-15 minutes to set up a fresh machine.

        I'd consider NixOS if cross OS compatibility wasn't a concern but a shell script and Arch has been great a combo for building a custom set up from the ground up. It's something I've been doing for my dev environment for around 8 years now but only introduced a GUI in the last year once my ~12 year old hardware was compatible with native Linux so I could finally drop Windows with WSL 2.

      • markstos 49 minutes ago
        Nix is also great outside of NixOS. I use it to keep packages consistently installed across a Ubuntu, Arch and NixOS devices.

        I use a NixOS VM to contain my dev work with my agent, which itself is setup by Nix. This protects against supply chain attacks from package installs and other things that might go sideways with linters and other tooling.

      • c7b 56 minutes ago
        Do you have any comparison to guix? I'm intrigued by the concept, and I think some of guix' choices would appeal better to me, but I'm unsure about the size of the ecosyste,m, I almost never hear about it.
        • danlitt 17 minutes ago
          I used Nix for a while (~2019-2023) and switched to Guix. katdork's answer is good so I will try to only write things that complement it rather than repeat stuff.

          I never got the hang of the Nix language and I also never really understood flakes. On the whole I found Nix very friendly if you follow the well-trodden path and profoundly intimidating if you do anything outside of that.

          Having used Guile for a few years I think I still feel that using a general purpose programming language is a better choice than inventing one, however I think Guile is not super ergonomic. It's hard for me to tell whether the project would have worked at all with something like Python, but it's hard to imagine we would be worse off (just given the sheer amount of leverage you get from libraries).

          Generally speaking Guix is much less developed than Nix is. I think with a sufficiently good skillset in Guile it is probably a lot more hackable than Nix, but i'm not certain of that.

          Regarding shepherd as an alternative to systemd: I love the shepherd, and it is a sufficiently small project that you can kind of drive the direction a bit if you use it a lot. I think it's important to have systemd alternatives.

        • iamnothere 30 minutes ago
          If you like “pure” FP languages like Haskell, you will love Nix’s design and won’t have a problem with the language. If you prefer Lisps and prefer messy flexibility, Guix is probably a better fit.

          Nix makes you bend over backwards to do things the “right” way. Some people love that because it preserves the organization and purity of the configuration, while some people prefer pragmatism and DIY parentheses-laden contraptions.

          There is also the GNU effect, people who strongly prefer the GPL and FSF-adjacent projects will probably be drawn to Guix.

        • luz666 47 minutes ago
          This link is my favourite for comparison of NixOS to <insert other OS here>: https://repology.org/repositories/graphs

          Imo it looks like guix is still far behind and not going to get traction at all, even after years. You can find it in the range of Ubuntu.

        • katdork 51 minutes ago
          not the parent poster, but:

          guix banned all ai contributions (https://codeberg.org/guix/guix/pulls/11407) in comparison to nixpkgs that has a somewhat friendly ai policy.

          guix and nix both use the nix-daemon, guix has a proper language (guile scheme) in comparison to the weird language you can't really make actual programs in that is nix. most people that said, don't really like lisps as an experience (i do!)

          the ergonomics of nix got slightly better with the pipe-operator(s) feature, at least. it reads like a somewhat deranged OCaml. here's an example of me writing F#-like nix; https://codeberg.org/kittywitch/ala/src/branch/main/flake.ni...

          guix tends to contaminate the system environment more than nix on the whole, typically adding packages (think MELPA, ELPA, ...) to your emacs is literally adding them to the environment in guix, but in nixos this is some pkgs.emacs.withPackages type guy and doesn't contaminate the system environment

          guix is a lot smaller. many things aren't packaged. a majority of people on guix use nonguix (because guix is gnu-affiliated, the proprietary software stance is kept and nonguix provides proprietary drivers/software/...); https://guix.gnu.org/blog/2025/guix-user-and-contributor-sur... for proprietary software. 13% of guix users also use nix for packages alongside guix (And people use flatpaks, whatever, ...)

          they are both relatively comfortable systems but if you want "frictionless" and are all for agents you'll end up liking nixos more than guix.

          guix uses shepherd as an init system and service manager (here's a post on shepherd not liking LLMs: https://shepherding.services/news/2026/08/shepherd-not-robot...) and not systemd (which is what NixOS uses)

          guix also has guix home, which is an equivalent to home-manager in nix-land, but it's built in and first party.

          guix has no alternatives to flakes and flakes are kind of useful although the implementation kinda sucks and is still unstable after ungodly quantities of time

          it goes without saying that guix is presumably less accepting to the users of LLMs

          but like, if you're a lisp machine enjoyer, guix is where it's at

          (usage disclosure: i have used nixos for 6 years now (even before LLMs were the hot new thing) and i have used guix for about a year)

    • alright2565 1 hour ago
      NixOS is also the most tinker-able OS out there. You can quickly have your AI agent make a patch for any operating system component that you want, and automatically rebuild that component and everything that depends on it.

      In many cases I've been able to fix the bugs that I run across, submit the fixes upstream, and have the same fix running on my system simultaneously without worrying about out-of-date packages or what the software's release schedule is.

      • cpuguy83 52 minutes ago
        This what I love about. Absolutely trivial to patch existing packages, add your own, even override the one from nixpkgs.
      • dark-star 48 minutes ago
        Isn't this possible on any Linux distro? Fetch the source package, patch it, rebuild, install?
        • kam 32 minutes ago
          Possible, yes. Easy, no.

          For example on most distros an updated package will supersede your rebuilt one and you'd need to build it again manually. On NixOS, it will rebuild your with your patch automatically.

        • orbital-decay 29 minutes ago
          Of course, though maintaining a bunch of these is hell unless it's automated. Nix does exactly that, it automates what should be automated.
        • drdexebtjl 40 minutes ago
          Yeah, but you don’t have to do anything when upstream updates, provided your patch still applies. You continue getting updates normally.
        • bigstrat2003 31 minutes ago
          In particular, Gentoo makes it really easy to patch packages you install. It's one of the ways in which the source-based nature really gives you a lot of power.
    • linux4dummies 39 minutes ago
      I already did something like that. take a look here: https://github.com/kalken/eznix
    • marknutter 29 minutes ago
      I've never used Linux as a daily driver and recently I finally decided to make the leap and go with NixOS on the recommendation of a couple friends of mine, and I'm very happy with it. I also wouldn't have even made the attempt were it not for ai. I set the entire system up, including my media server stack, development environments, and more, remotely via telegram and claude code while on a camping trip with my family. The future of computing is talking to your computer and it just does what you tell it to.
    • dblooman 48 minutes ago
      Counterpoint, in the AI world, nix is less relevant for local dev. With remote environments and the trend to build less locally, minimal remote environments with little management are a nicer experience. I think running agents on a local system will be less common in the enterprise by the end of 2027
    • dark-star 46 minutes ago
      What's the advantage over any other Linux distro in a VM that you can checkpoint, refcopy and boot up in seconds? I'd rather let my AI agent run amok in a VM than on my actual production system
      • gf000 4 minutes ago
        You describe declaratively your whole system.

        I have a single nix config repo that can build my home server, home PC and remote server all. They have a small shared part (terminal user settings etc), but it also sets up stuff like systemd services etc.

        Like the whole *arr+jellyfin (download media) setup is just a couple of lines and it just works.

      • drdexebtjl 26 minutes ago
        So run NixOS in a VM. The advantage is that when the agent does make some (useful) change to the system that you want to keep, the change will be reproducible so you can apply it on your clean checkpoint. On a traditional distro, you would have to checkpoint after the agent made the change, including not only the change, but all the state leading up to the change.
    • uncletaco 18 minutes ago
      It’s all fine and dandy until it deletes the nix store
    • anon291 1 hour ago
      Yup. I run my entire server setup on nixos. Been doing it almost 8 years now. But I recently handed it all over to my agents. Got pxe booting, instant kexec updates with tpm handoffs, etc... so easy!
    • Acrobatic_Road 1 hour ago
      That's only true for the declarative parts of your system. What if AI decides to delete your photo library and you don't have a backup? Or it deletes your old generations to "save space"?
      • tosser811 1 hour ago
        I guess you missed

        > Combine it with a good personal file backup system like borg and you're golden

        As for old generations, I keep my system flakes in a git repo. Even if they're garbage collected I could checkout the old commit and rebuild if necessary.

        • eblanshey 1 hour ago
          Git is the way to go. Again, I think all of this stuff can easily be set up for non-tech people out of the box: backups, git repo, built-in AI agent, perhaps running locally using a small model fine tuned for the OS. All optional.
      • nextos 1 hour ago
        Yeah, declarativeness and sandboxing are almost orthogonal.

        However, it is worth noting that Nix has pretty good sandboxing facilities.

        Nevertheless, more tooling on this area would be welcome. It is still a bit behind Guix.

      • pxc 1 hour ago
        Use a sandboxing tool that offers restrictions on the filesystem and rollbacks on whatever parts the LLM agent has write access to. I use this one: https://nono.sh/
        • eblanshey 1 hour ago
          Interesting. I've just been using bubblewrap but this one has more flexibility. Thanks for sharing.
      • eblanshey 1 hour ago
        That's why I mentioned the backup system as a requirement. Ideally the OS can help set this up for non-techy folks from the get-go.
      • tripleee 1 hour ago
        maybe back up your important files?
      • anon291 1 hour ago
        Hmmm.... In my use cases, ai just writes the nix expressions and simulates my entire data center setup in qemu. It also writes a script to deploy the thing. I do the final deployment
      • greenavocado 1 hour ago
        ZFS and many other filesystems have snapshots. LLMs don't go around deleting snapshots yet.
        • AlexErrant 31 minutes ago
          Heh — not sure how true this is. Literally yesterday I prompted Opus5.5:

              ok we did step 1, 2, 3, and 4 in a prior commit/session.
              Do a review of the most recent commit, which was #4. Fix anything that has an easy, obvious and clearly correct solution. Report anything that needs a human judgement call.
          
          It then fucking ran `git reflog expire --expire-unreachable=now --all` which dropped my git stashes. At ~118k tokens. Why did it expire the reflog? Who TF knows?!

          I had a 3hr old system backup (have an offline backup yall) so it was nbd to recover, but still. The lawnmower will cut off your foot given half the chance. https://imgur.com/a/zjDgp6r

          It might not intentionally delete a snapshot. But y'never know...

          • greenavocado 2 minutes ago
            That is wild. Do you happen to work in the same verticals Anthropic is trying to compete in? LOL
    • keybored 55 minutes ago
      Old, solid and futuristic-good tech? Congrats, now the discourse is overrun by people talking about machines using it.
      • dirasieb 44 minutes ago
        AI is futuristic-good
    • martyfunkhouser 1 hour ago
      Time Machine could do that in 2006.
      • tiffanyh 1 hour ago
        That's completely different.

        Time Machine was a snapshot backup, which if fundamentally different.

        • pxc 1 hour ago
          Time Machine didn't even get real snapshots until APFS came out with High Sierra in 2017. It had to walk the filesystem while you could still write to it; it wasn't truly point-in-time.

          And even then, filesystem snapshotting isn't the kind of rollback you get with Nix, and Nix's implementation doesn't require a filesystem that supports snapshots.

        • martyfunkhouser 1 hour ago
          Who cares? It's all means to an end.

          I don't have to run an esoteric, experimental OS to achieve the same goal.

          It's a net loss of hacker points — like currency of a country that doesn't exist anymore. Both worthless in the real world.

          • ndriscoll 59 minutes ago
            NixOS isn't experimental. It's older than Time Machine. Linux is also just generally more useful as a desktop environment unless you're specifically invested into the Apple ecosystem (e.g. on OSX you get people using Homebrew as a package manager because there's no good builtin one, which IIRC does things like update other packages you didn't ask it to update when you install something, in addition to having its own esoteric vocabulary and error messages, telling you that for this package you should've tapped a cask or whatever when you try to `brew install`).
          • pxc 44 minutes ago
            NixOS has never been about hacker points, although its increasing fame among young distrohoppers who want it to play the same role as Gentoo or Arch in certain juvenile subcultures seem to have confused some people on that point. (Such users are of course very welcome and likely to eventually contribute generously in terms of support time, debugging, or code. It's just that sudden changes in a project's popularity tend to challenge cultural continuity.)

            > I don't have to run an esoteric, experimental OS to achieve the same goal.

            Indeed, you can achieve something pretty decent today on macOS with Nix-Darwin. Both the rollback capability and the declarative configuration management Nix offers are OS-independent.

            > It's all means to an end.

            Sure! The best reasons to run NixOS are "I enjoy the experience" and "it's really good at this specific thing I want/need to do". NixOS offers experiences that reignite the joy of computing for many, many people. If it deserves any "hacker points", it's for bringing delight to hackers, not for some notion of technological sophistication.

            If you've tried it and don't like it, then it's not for you. But if you haven't, though, you might ask yourself whether your healthy tech curmudgeonry, that impulse to resist the arbitrarily trendy, has devolved into philistinism.

          • tecleandor 55 minutes ago
            You could restore disk snapshots way before Time Machine, IT departments did it all the time. And you could do it from the network, from a CD, from another drive, from...

            But NixOS is not that at all, it's not a backup solution. You can't take TimeMachine (or whatever disk snapshot solution you use, even ZFS if you like) and ask it to reinstall your system from clean just like before, but with a different Firefox version (just to set an example). Or to replicate it partially or totally in a container or VM.

            I don't even use NixOS (although I do a lot of snapshots), and it's a completely different thing.

          • tosser811 59 minutes ago
            I've never once had the desire to restore system state from something like Time Machine. If my OS is hosed, it's hosed and I'm going to reinstall it. NixOS doesn't allow you to get into that state because of its very design. It is far from "worthless."
          • orbital-decay 1 hour ago
            It's not about "hacker points", the agent makes complexity nearly invisible (current agents wreck havoc on Nix code quality if left running completely unattended, but that's another question). NixOS gives the agent a devops engine for your machine or a fleet, "global undo" is just one tiny thing it can do. For example the agent can do something in the background without interrupting you using a shadow branch of the entire operating system. It's extremely flexible, Time Machine and systems with immutable snapshots are incomparable.
      • tosser811 1 hour ago
        Rsync could do that in 1996.
        • Forgeties79 53 minutes ago
          Rsync is great but honestly? Time Machine is the number one thing I miss from MacOS by far (went full-Linux about 18mo ago, MacOS user for 15 years prior). The most turnkey and intuitive backup system I’ve ever seen and it’s free*

          Having that plus idrive for cloud was just so fire and forget (and cheap!) it was great.

          *if you have a drive to store on

          • jmspring 48 minutes ago
            I really disliked the time machine UI. It was easy to setup and forget, for sure.
            • Forgeties79 35 minutes ago
              It was a little too cute but if you needed to boot your computer onto a new Mac, it was a few clicks and you’re done. Wonderful experience. That’s why I liked idrive for general access/browsing of files too.

              Time Machine was the “oh shit” button for resetting or starting a new computer and it worked very well. It was also very stable and hard to misconfigure.

      • cloudfudge 48 minutes ago
        And dd could do it decades before that. This entirely misses the point of what nix/nixos does.
  • kubafu 1 hour ago
    Thanks NixOS maintainers for everything you do! 9 years of NixOS for me and I can't ever see myself going back.
  • aliasxneo 11 minutes ago
    This is my entirely subjective take: I ran Nix and NixOS heavily for around four or five years. Both personally and in production at day job. I stopped using it when the community started becoming a bit too unpredictable. Since then, I've had a pretty standard setup, with maybe `mise` being the most interesting thing. All I can say is that I've noticed exactly zero difference across those years in my day-to-day troubles. I neither think Nix improved or made worse the situation compared to not using it. Which is funny, because I use to be the Nix evangelical going around explaining why people should run it, having all of the common scenarios almost memorized. Yet, after leaving Nix, I've never actually _replicated_ any of those scenarios. I was basically fear-mongering.

    So yeah, take it with a grain of salt, but it's helped me understand why adoption always felt so hit-and-miss with my co-workers.

  • tosser811 1 hour ago
    Thank you to the maintainers! I've been a convert for ~2 years now. The maintainability and reproducibility that the Nix ecosystem provides is unmatched.
  • arn3n 1 hour ago
    8000 packages added, 25000 updated, 3000 removed.

    That’s crazy; I wonder what the quality and stability of all these packages are. I run NixOS on my homelab and have been generally pretty happy, but I suspect I’m only using very standard, well-worn packages.

    • mikepurvis 1 hour ago
      I'm not an active maintainer, but nixpkgs definitely has a huge amount of automation going on. Tons of stuff getting slurped in from other package managers, pypi, cargo, etc.

      Ryan Mulligan's bot alone is responsible for over 162k PRs in there:

      https://github.com/NixOS/nixpkgs/pulls?q=is%3Apr+author%3Ar-...

      And I believe much of that is actually pre-LLM, just the basic work of "what version have we got, what version has upstream got, okay bump forward and run the test suite, PR"

    • unshavedyak 1 hour ago
      Yea, i was just discussing this - i'm concerned that Nix's model of git based channels leads in the current day of constant exploits leads to constantly updating the channel (or in my case, my flake lock), and as a result possibly letting in sketchy updates.

      I'd feel better about updating my lockfile so frequently if there was some sort of global-min-publish-age like Rust's Cargo has.

      Not really sure what the ideal solution is. I just know i'm getting more concerned with each update heh. Especially since so many of us use unstable for some/all packages.

      • jml7c5 1 hour ago
        I was more concerned about this before LLMs. Nowadays, I suspect people are using LLMs to monitor nixpkgs commits for malicious changes. (Or rather, I hope people are. It seems like an obvious strategy, but perhaps it's too expensive for any single individual to undertake.)
        • mikepurvis 1 hour ago
          I expect there are orgs that are paying to at least monitor the stuff in their closures, which with enough such participants should give decent coverage of a common baseline, even if it's patchier at the fringes.
    • forgotpwd16 1 hour ago
      Expectation is: if upstream program version packaged is good, package is good. Majority of derivations just pull from upstream since there's no need to take extra steps to make everything work happy together, i.e. pkg1 can depend on libA_v1 and pkg2 can depend on libA_v2 or libA_v1-but-with-some-patches, without conflict or extra work, due to Nix's design, whereas on regular distros it isn't as simple. Also Nix manages python/ruby/etc packages that on other distros will've been installed by pip/gem/etc.
    • bpye 1 hour ago
      I am listed as a maintainer of a couple packages. Getting packages into nixpkgs isn’t too hard, and updates are often automated. I have very rarely needed to do anything beyond glance over the auto update PRs.
    • eventualcomp 1 hour ago
      I mean, NixOS is big on determinism, so when you declare what a package is, you typically have to redefine a deterministic identifier of the dependency, e.g. a sha256. To contrast, I do not think when you update libssl on Ubuntu, it's advertised as updating all the networking-enabled packages on your system. But for NixOS it literally is.

      My NixOS concern for homelabs is whether such package rebuilds will destroy the write cycles on my storage. Especially in this market I think I would rather let hyperscalars deal with that kind of problem.

      • doubled112 1 hour ago
        NixOS has binary package caches. It is usually just downloading and installing like any other distro. My NixOS systems don't rebuild anything.
  • cdmckay 1 hour ago
    I switched over with the advent of good coding models and never looked back.

    It’s amazing when you’re working with multiple laptops as well, keeping your AGENTS.md in sync along with all your scripts, apps, etc.

    Once you’re used to it, not having it seems like chaos.

    I love it but I don’t think I would’ve had the time to learn it if not for LLMs.

  • rcarmo 37 minutes ago
    That's timely. Time to update https://github.com/rcarmo/nixos-azure-arm64 and test it again (I haven't deployed new images in a bit, the current VMs have been upgrading fine)
  • mbrumlow 29 minutes ago
    What ever happened to lix?
    • tfrancisl 3 minutes ago
      It is still kicking and getting updates from its small team. It's the flavor of the lang / evaluator i personally use everywhere.
  • shevy-java 1 hour ago
    People we need more competition here.

    Right now NixOS is kind of unique in many ways.

    I will now put up a challenge, perhaps 1 out of 1000000 may consider it as a claim:

    The claim is that no other linux distribution will offer features similar to NixOS in the next three years.

    (Hopefully I will be wrong, but the challenge has now been started. See you in three years to check.)

    • zernoshka 53 minutes ago
      Universal Blue/Fedora Atomic desktops are similar but different. Using it, I've created my own immutable OS from a Fedora base image, and declared configurations and packages using bash scripts and Containerfiles.

      My config: https://github.com/zernoshka/Phoenix/blob/main/Containerfile

      Universal Blue: https://universal-blue.org

      • zamalek 29 minutes ago
        While I use NixOS for my whole system, I _suspect_ that the best option might be ublue for / and nix home-manager for /home (and user apps).
    • murderfs 1 hour ago
      This is already false, Guix does the same thing.
      • jnpnj 24 minutes ago
        Makes me wanna find a group dedicated to tracking and studying OSes and platforms sharing similar traits. Immutability, functional oriented, verifiability, etc etc
    • orbital-decay 32 minutes ago
      Guix/Guix System is a pretty good alternative and a less chaotic ecosystem. It has fewer people behind it, though.
    • sigbottle 1 hour ago
      I mean I just use nix, and there's no special god-given reason it has to be "nix", nix just figured out the core algorithm and idea to make it work (innovative, but not anything crazy like Riemann) , and there's a ton of ecosystem backup to make it work.
      • ikety 33 minutes ago
        Exactly, I'm not married to Nix. I'm married to the idea, which just currently happens to be best solved with Nix.

        Eventually moving to a different solution for the same problems is fine to me.

        Going backwards is not.

  • henriquez 1 hour ago
    [dead]