NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲NixOS 26.11 (nixos.org)
eblanshey 1 days 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 days 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.

indemnity 1 days ago [-]
I have this, but multiplied across all my machines with flakes. Three Linux servers, one Linux gaming desktop, and two Macs (running nix-darwin).

Depending on the role it may have a different set of packages, my edge firewall is obviously stripped way back.

But like you whenever there is friction, I now have my agent cook up a recipe or tool to remove it, and add it to the Flake repository.

Secrets are managed via a custom built system I have that needs going through a YubiKey to decrypt .age files on the fly.

On all machines that have similar roles I have the same tools, configured the same.

It’s so great. AI fixed the usability issue with Nix and NixOS, now it’s become a completely tailored to me computing environment.

anyy1Uhgbwq6 1 days ago [-]
>Secrets are managed via a custom built system I have that needs going through a YubiKey to decrypt .age files on the fly.

This sounds pretty cool! Anything you can share or explain in more details?

futureahead 1 days ago [-]
On windows that key was DPAI for years, so any process running as you could decrypt it. Chrome added app-bound encryption in 2024 and stealers worked around it within months.
abrookewood 1 days ago [-]
Can I ask how it works as a gaming machine? I'm on Ubuntu (largely because it was the 'supported' distro for Total War: Warhammer), contemplating a move to Debian because I want to stick with APT, but Nix is appealing.
kccqzy 1 days ago [-]
AI agents are very good at debugging game issues. If a game doesn’t work just ask an agent. Just last week a game couldn’t launch without any error message, and an agent only took two minutes to figure out that the game needed MSVC6 but it wasn’t installed by the game installer nor GE-Proton. Then it figured out a separate issue where the host didn’t have 32-bit graphics drivers.
hexasquid 24 hours ago [-]
I run a gaming PC using nixos. Over steam remote play, it can stream things like Elden Ring just fine. Also using moonlight one can do the same for PS3 emulation. My last reason to use windows is gone.
opan 17 hours ago [-]
With SteamOS being Arch now (originally it was Debian like a decade ago), I'd say that's the new recommended distro, even if many Steam store pages still list Ubuntu.
saintvlad 1 days ago [-]
I run NixOS as a gaming machine - it should be comparable to any other Linux distro. Steam Linux Runtime or proton handles a lot of the Linux-specific issues anyway. And agents solve having to learn Nix for the most part, if that is the part you were hung up on - I've been using it long before agents, but I mostly have the agents edit my config now, so...
1 days ago [-]
markstos 1 days 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.

nickjj 1 days 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.

jmoggr 1 days ago [-]
This is not the same. I used to do something like what you describe, but it can't get close to the ease and safety of a declarative config: updating the script and updating the current system are two different steps, only one of which is easy to verify (let alone libc or gpu drivers randomly breaking when i try to install a dependency...).

It is possibly worth it if you don't want to go through the nix learning curve, but after you're over that curve the value prop is very different.

nickjj 1 days ago [-]
The script basically installs Arch packages and symlinks config files (both system and home directory). It also handles things you'd probably want to do on a new system in an idempotent way (create a GPG / SSH key, configure git, etc.).

Arch's philosophy of "update reasonably often and don't pin / ignore updating packages" is a potential cause to be worried about updates but generally they are quite good about calling out updates where you need to take action. I've only been running Arch natively for 1 year so I don't have a long track record of trust with it, but no updates have broken anything yet on 12 year old hardware.

There's also tools like Mise which is helpful for installing and pinning specific tools outside of Arch's packages. For example if project A and B both use Terraform and you want to use version X and Y, Mise makes it easy to switch between both versions on demand. Quite handy for programming language versions too if you're not running everything in Docker.

I want to like NixOS but I just haven't felt a compelling reason to look into it because I'm not sure how it'll improve things. I can 1 shot a new system in 10-15 minutes, keep an existing machine up to date and have a way to make machine-specific changes in a way where I don't need to fork any repos. It's also general purpose enough that anyone can use it in the same way. My entire machine's configuration lives in a single dotfiles repo as well, so all of those configs are version controlled. The icing on the cake is it's compatible with Arch Linux, Debian, Ubuntu and macOS with WSL 2 support too because it's just a shell script and a couple of if conditions to handle the differences between environments.

jmoggr 6 hours ago [-]
> I can 1 shot a new system in 10-15 minutes, keep an existing machine up to date and have a way to make machine-specific changes in a way where I don't need to fork any repos. It's also general purpose enough that anyone can use it in the same way. My entire machine's configuration lives in a single dotfiles repo as well, so all of those configs are version controlled.

I looked at what you have, and if its truly as easy as you say it is, then there is not much benefit to moving. The reasons to move:

- you don't need to hand roll the translation layer for each new program or service you want to have a declarative config for.

- can be more confident in rollbacks. in my experience with scripts like this is its very difficult to be sure that things have been cleaned up correctly when they are disabled or removed.

- Much less likely to leave the system in an unusable state: you can just boot to the previously applied nix settings

- More stable (IMO) than Arch Linux, Debian, Ubuntu, and can still be used on macOS and WSL.

- Is established and tested enough to be used in production. And in production, there are many more benefits than using it for personal config.

- Trivial to compose different bits of config across multiple machines, do remote deploys and secrets management.

> For example if project A and B both use Terraform and you want to use version X and Y, Mise makes it easy to switch between both versions on demand.

This is literally the same in nix. I typically have a per project nix environment that is changed to whenever i enter a projects directory.

It seems that you've already put in the effort required to make this work for you, for many people i suspect it would be easier and more valuable to use Nix instead.

nickjj 4 hours ago [-]
> Can be more confident in rollbacks. in my experience with scripts like this is its very difficult to be sure that things have been cleaned up correctly when they are disabled or removed.

Yep, sometimes I change something around like a symlink name or maybe I decide to no longer use a tool so I delete it from my dotfiles but the dead symlink destination still exists. It doesn't do any harm but it lingers around. I delete these things manually. It doesn't happen a lot but I figured a manual process here is better than trying to apply migrations.

> It seems that you've already put in the effort required to make this work for you, for many people i suspect it would be easier and more valuable to use Nix instead.

Yes but also no. It wasn't a ton. Sure the repo has been developed out for half a decade with all of the automated scripts but at the end of the day it's just a few hours of shell scripting across a bunch of coding sessions (I didn't use AI). It was a fun learning experience but I'm always on the look out for a better solution.

On a related note, I do see a lot of value in the idea of infrastructure as code. Over 10 years ago I replaced a bunch of loose shell scripts to provision production servers with Ansible playbooks and roles I still use today after evolving them. It also 1 shots a server to run any web app through Docker Compose or a static site with nginx, with DNS based Let's Encrypt and most things you'd expect. Around ~10 lines of YAML configuration for each host gets you going.

Are you using NixOS in production in that way, as a drop in replacement for running Ansible on a Debian host?

The main reasons I didn't use Ansible for my dev boxes are because it's quite slow and doesn't provide real-time streaming output of tasks. The shell script solution in development syncs everything in about 5 seconds plus however long it takes to install / update packages (tens of seconds usually).

theresanagent 24 hours ago [-]
[dead]
pimeys 1 days 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.
joshspankit 11 hours ago [-]
Where does NixOS currently stand on disk usage?

Specifically thinking about “throwaway” 20-30GB VPS that might end up hanging around for years and multiple projects

c7b 1 days 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.
iamnothere 1 days 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.

danlitt 1 days 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.

luz666 1 days 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 1 days 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)

grep_name 1 days ago [-]
I used nixOS for about two years and then migrated off. I kept running into issues caused by it not implementing the FHS but also found the tools for working around that (nix-ld, steam-run, 'just write a custom flake for it') to be really lacking and a huge pain. Over the years, the list of things I couldn't do without enormous effort grew too large and I switched back to slackware, where it feels great to just be able to drop a release in /usr/local/bin or run an appimage (appimages in particular were a nightmare for me on nixos, which surprised me as I thought they were supposed to have all their dependencies included but still ran into dynamic linking issues everywhere.) I also never wanted to use home-manager; because of work I have a hybrid dotfile system that works on both mac and linux and being able to port configs via a simple script to systems on whatever os (except windows I guess) is important to me, and I also never felt like the home-manager setup was more elegant or useable than just a symlinked ~/.config dir.

If I gave guix a spin, would I run into these same exact issues do you think? (Incidently separately from all this I do love gnu guile and lisps in general)

katdork 1 days ago [-]
`appimage-run` has never not worked for appimages for me on NixOS unless it was like, unity. i'm also more than happy to set up fhsenvs myself ><

but like... guix still is a little high effort to package things for (though it has guix import or whatever to try auto-generating a package from a supported upstream, e.g. a crate or something).

you can, however, in both guix and nix, have escape hatches (flatpak, appimage, chroots).

https://guix.gnu.org/manual/1.5.0/en/guix.html#:~:text=Data%... guix supports stow-like or "dotfiles" repository like configurations in guix home pretty kindly. with macos, nix-darwin + home-manager was suitable enough for me although a little jank... guix home doesn't concern itself with macos, but you could probably use the exact same dots between them using the aformentioned link

most of the reason one would even use home-manager to begin with is using modules for one's programs (at which point nix becomes something you can't do away with because all of your things are caught up in it) at the cost of indirection (having to read both the underlying program's manual AND the home-manager/nixos module)

guix has less modules and where it does have modules they're more conservative about changes and slower to change

you would be likely to run into the same issues, the question is whether or not you would want to take the easier ways out instead of committing wholeheartedly to purity...? (plus, to begin with, proprietary software means having to figure out guix channels and nonguix! your wireless drivers, nvidia graphics drivers, ...)

i've been pretty committed to the guile stuff to the extent of trying out and contributing to https://codeberg.org/ebeem/gliver as of late but from NixOS, until i move fully to guix :p

grep_name 22 hours ago [-]
hmm ah well. I may play with guix more in a VM or something to see what it's like as an exercise, but it sounds like it's not for me. At this point, I think I've found that truly first-class FHS support is a critical feature of a functioning OS for me.

> `appimage-run` has never not worked for appimages for me on NixOS unless it was like, unity

I'm very happy for you, this was absolutely not my experience. I had irreconcilable issues happen over and over again with appimages for me. The straw that broke the camel's back was slippi, which I really wanted to play, but required an external dependency on a very specific version of curl which broke everything, despite being an appimage. appimage-run did not work for this, nor any of the other usual tools, and I ended up having to painstakingly extract the dependencies one-by-one to build a very fragile and fairly complex flake that needed ongoing maintenance just to run the software. I don't want to ever have to do that again. Chroots as a fix are an approach I haven't heard of, you're saying just support FHS standards in a different environment and run commands from it? When I think about using a chroot with a separate ecosystem that has dynamic linking working the way almost all software expects I just think, well what's the point of not just having the OS work that way in the first place?

> you would be likely to run into the same issues, the question is whether or not you would want to take the easier ways out instead of committing wholeheartedly to purity...? (plus, to begin with, proprietary software means having to figure out guix channels and nonguix! your wireless drivers, nvidia graphics drivers, ...)

I'm having trouble parsing this, but not sure where purity comes into it? I just want to be able to run pretty much any software I encounter no matter how it's packaged or provided and nix made it really hard to do that. The one time I did configure guix, adding the nonguix channel took about a minute and I didn't really have to think about it again after that?

katdork 19 hours ago [-]
wrt chroots: when one daily drives other weird distributions (e.g. one with musl libc, consider Alpine an example here) way back when one gets used to the escape hatch of having a glibc (let's say Arch Linux) system to chroot into if one wants to do things like play games (at least, this was the case prior to flatpaks being the norm, which are just glorified chroots in a way).

it doesn't necessarily mean that you think the advantages of the system aren't worthwhile as-is, it just means that sometimes the encumbrance prevents you from doing what you want so you work around it as opposed to large time investments that would prevent you from doing what you want to do?

but i don't necessarily advocate for escape hatches in this regard, then again it's my time i'm wasting by having to package things :D:

wrt purity: there's a tendency amongst nixos users to avoid escape hatches and to use their flake as a single source of truth, which the escape hatches typically break.

wrt configuring guix: i'm glad it was an easy onboarding that one time o:

chickensong 1 days ago [-]
> It's a systemd container that pulls in most of my host config

You might find microvm.nix interesting if you ever want to go beyond containers.

lloydatkinson 1 days ago [-]
Is this open source? Always looking for good NixOS references for my homelab.
Eji1700 1 days ago [-]
I, jokingly, told someone that AI might make the year of Linux happen because it’s less angry about your ignorance and maybe as wrong.

In many ways I’ve become more serious about that belief, not to perpetuate the angry Linux nerd stereotype but being able to quickly troubleshoot YOUR configs weird one-off without having to dig through forums and discord channels hoping someone can point you in the right direction is what many of us have always needed. Building docs the whole way so it’s not a complete start over if you lose momentum.

The elitist nerd thing is whatever but having a project that might have taken a day or more of waiting for advice in low traffic social media circles turn into one evening of debugging helps SO much in keeping the “oh I want to try this” inertia of Linux without getting lost because some one off log you didn’t know about has the info you need.

You still get that log, see how it’s meant to work, and can turn it around and keep going rather than staring at your box and wondering if you’re in the mood for going over the advice you got and double checking for typos.

And then for Nix specifically things like the dendritic pattern strike me as progress towards the idiomatic standards I always hoped for. The allure of “Ill just see how someone else did it” working with your environment finally being true, rather than “oh better convert to the style I set up” has helped so so much

solyin 1 days ago [-]
I've said that non-jokingly for months. The other thing is, AI also works on Windows, so you can get it to remove McAfee from your mom's computer for you.
alright2565 1 days 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 1 days ago [-]
This what I love about. Absolutely trivial to patch existing packages, add your own, even override the one from nixpkgs.
dark-star 1 days ago [-]
Isn't this possible on any Linux distro? Fetch the source package, patch it, rebuild, install?
cloudfudge 1 days ago [-]
The difference is in what "install" means. With most install methods, you're just blasting bits onto a disk and the connection between those bits, the package that created them, and their dependencies, is maybe tracked in a database. A database that can be inconsistent. And uninstalling things doesn't necessarily restore everything to the state that it was in before the install. This is deeply unsatisfying once you've seen how it can be.

As an example, you can install app A that depends on packages P and Q and then uninstall A, but P and Q won't necessarily be uninstalled. Or you can also have app B that depends on a different version of P and there's a conflict. This completely goes away with nix because a thing and its dependencies are represented as a completely standalone closure, and the state of your machine is just the sum of all the closures you want. It's trivial to go back to the set of closures you had 30 seconds ago if you didn't like the result of the change you just made.

It's truly magical.

pitchlatte 1 days ago [-]
i’ve been reading about Nix and trying to get it for a while and reading your comment made me think about journaling file systems. would that be an appropriate comparison here? i understand that the declarative paradigm is a fundamentally different design of course.
cloudfudge 23 hours ago [-]
That would be another way to get the rollback property, but that doesn't solve for example the dependency collision problem. It also doesn't solve the problem of deleting something another package depends on, other than that you can roll it back. With nix, if the package is referenced in a closure, it simply isn't deleted. It's like magical garbage collection for every part of your system.

And it isn't just a snapshot of your machine state, it's a definition of how the machine state got that way, plus a mechanism for arbitrarily applying any such definition. You don't even have to restrict yourself to a linear roll-forward-roll-back path. You can install A, B, C, D, E and then remove C and know that you aren't breaking anything, even though you were never in that state before.

krautsauer 23 hours ago [-]
You can e.g. use btrfs, put /usr in a subvolume, regularily snapshot it, and roll back when you don't like some modification. What you still don't get is the state in /usr being defined by some manageable amount of code, where you can easily say "rip out this part" without rolling back everything you did afterwards.
dark-star 8 hours ago [-]
most package managers these days know about "orphaned packages" and offer to uninstall those as well, if no other package needs them.

Also, you are claiming that a package manager database can become corrupted. While that is true (but unlikely), it is equally true that some part of your Nix installation can become corrupted. Combined with an advanced filesystem like btrfs you can also go back to the exact system state before the installation of your package.

Worse comes to worst, you can re-install with a list of your dpkg --get-selections to get the exact same state as before (similar to how a declarative installation of Nix would be reset from scratch)

I mean I see the advantages of Nix from the point of view of a daily-driver desktop (or server) OS, but I don't see any benefit from using it to sandbox an AI agent. If you are already a NixOS user, then yeah, it's probably the easiest pick for a VM. But the learning curve is rather high, and if you're, say, an Arch user you would probably just stick to an Arch VM which offers the same benefits (maybe in a slightly less user-friendly way) but doesn't require you to commit to the admittedly bizarre way of how NixOS works, and its two config languages etc.

cloudfudge 3 hours ago [-]
> it is equally true that some part of your Nix installation can become corrupted

I think a [citation needed] is in order here. The number of times other package dbs have failed me and required reinstallation of packages that otherwise should be in a good state (countless)*, vs the number of times a nix installation has become corrupted (zero) tells me otherwise. I think the fact that the nix store is readonly and the packages are absolutely required to declare their dependencies in a strong way (as opposed to being able to accidentally rely on stuff that happens to be installed) is a huge part of this. When your entire system is symlinks into a set of readonly self-contained blobs, the only "corruption" is basically "your disk is broken."

* There's a reason apt has a "--fix-broken" option and when I type "rpm" into google the first autocomplete is "rpm database corruption".

max-privatevoid 1 hours ago [-]
> Worse comes to worst, you can re-install with a list of your dpkg --get-selections to get the exact same state as before (similar to how a declarative installation of Nix would be reset from scratch)

With the amount of time I've struggled trying to recreate systems this way where getting package versions right was an important detail, all I can say is: You wish!

kam 1 days 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 1 days 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.
bigstrat2003 1 days 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.
drdexebtjl 1 days ago [-]
Yeah, but you don’t have to do anything when upstream updates, provided your patch still applies. You continue getting updates normally.
JackDrury 1 days ago [-]
I partially agree. I have been using NixOS as my daily driver for a few years on my desktop and wanted to setup an old laptop for an always-on agent-only device that I would only really interact with over SSH. I had trouble with proprietary Wi-Fi drivers and some other setup issues (which Claude helped me through with a bit of difficulty). Once it was up and running I also found the agents will often have some difficulty with dependencies I.e. wanting to use other package managers like npm when I would prefer it to use nix-shell. It often sorts itself out in the end, but will hit a lot of dead ends. This could be user-error on my part and a lack of a good Claude.md or similar, but for now I have found it much simpler and stabler for my agents to use a Debian machine. (I still use nixOS as my daily driver with AI agents also running on my machine, just the agent only machine is Debian).
throooooo 1 days ago [-]
Yeah my harness tries to use all kinds of stuff I don't have installed. It tried to launch ruby today just to hit an API. Updating your agent file to tell it about nix-shell is the move.
JackDrury 1 days ago [-]
Yeah, that is in the agent file. It happens more when I'm cloning other repos and projects and trying to use them and they have their own "conflicting" instructions. I also have difficulties related to the nix filesystem which makes different build systems that default to certain paths occasionally fail to find build artefacts etc.
wraptile 1 days ago [-]
I run my home lab of 5 machines and my main laptop all from a single nixos config repo, an overlay for each machine with claude and it's by far the best setup that no one's talking about. I'm pretty sure nix has won AI desktop and just needs some normie wrappers to claim the market.
funcDropShadow 17 hours ago [-]
I have a similar setup and one Omarchy laptop, and damn hat laptop is getting features and optimizations at an unbelievable rate. And the fact that any crashed app automatically starts an agent to investigate and to propose fixes or bug reports to the appropriate project, the distro, the app or some dependency is extremely nice.
ar_lan 1 days ago [-]
I 100% agree. The biggest gripe people had with Nix was always the language - which is now solved (with AI).

A deterministic OS with built-in rollback, version controlled, and no longer much of a steep learning curve? I personally have been all in for a while and I would expect/hope many others to do the same.

Cyph0n 1 days ago [-]
I would argue that it was the best distro pre-AI (no, I am not biased), but AI elevated it to the next level and made it more accessible to a wider audience.
marknutter 1 days 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.
XorNot 20 hours ago [-]
Okay but this works with any operating system and AI.

The defenses of Nix based on using it with AI are incredibly hollow. AI is also really good at setting up buildroots, gentoo or whatever else you throw at it.

dark-star 1 days 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
Cyph0n 1 days ago [-]
You can also just run NixOS in a VM, which is what I would recommend to try it out.

Heck, you can even build & bake a NixOS VM purely using Nix - no Packer or Ansible (or other tools) required. Funnily enough, I just made a short video about this: https://youtu.be/Pb32C2inVhw.

As for why NixOS vs. another distro, it’s just amazing to be able to declaratively specify the state of your system and “build” that specification with some level of confidence that it will boot and it will work. And if it doesn’t work, you can atomically roll it back without having to solely rely on external (VM or filesystem) snapshots.

gf000 1 days 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.

CrimsonCape 1 days ago [-]
One thing nobody mentioned yet is the Nix store; if you are unaware, every part of the system configuration you run is contained in the store; its a dedicated read-only file system that contains every software package managed by Nix. Once your system installation is switched-to, plain users do not have write permission in the store. So long as your agents are working in user land, they can't touch installed software. It's a lot of mental energy you don't have to spend worrying about where the LLM has been and what is has been doing.
charcircuit 1 days ago [-]
The LLM lives in the VM. We already know where it is. The code AI is writing and running is not going to be in the store anyways so it doesn't help as much as you say.
drdexebtjl 1 days 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.
throooooo 1 days ago [-]
That's a great point. I install things and configure things for random needs all the time. If I change my mind in a week or two it's easy to revert the commit. Snapshotting a VM doesn't come close.
dark-star 8 hours ago [-]
The disadvantage though is that you have a rather steep learning curve, with NixOS's two domain-specific config languages, the completely non-FHS directory layout, etc. and given the fact that you can achieve almost all the advantages it gives you with a "normal" Linux in a VM (with btrfs to rollback any package installation, with carefully planned separate partitions for users, system, config, etc.) I don't think it would be worth all the fuss just for sandboxing your AI agent

Don't get me wrong, I understand the advantages of Nix in a daily-driven system (e.g. kiosk systems, servers, containers, maybe even for a desktop) but just for sandboxing something it's overkill IMHO

uncletaco 1 days ago [-]
It’s all fine and dandy until it deletes the nix store
nocoolnametom 1 days ago [-]
Certainly possible on a plain `nix` installation on a regular Linux distro, but within NixOS the store is mounted as a RO drive and is only re-mounted temporarily when obtaining new derivations (either cached downloads or building them) so even a `sudo rm` can't touch them. The AI agent would have to be _extremely_ persistent to try and access the store and I can't imagine even a dumb model being simultaneously dumb enough to decide that it needs to fiddle with the story files directly while also being smart enough to try doing it.
colordrops 1 days ago [-]
it could delete everything on any distro, or any computer for that matter. Nothing to do with any deficiency in Nix. In fact the nix store is read-only and is pretty difficult to delete unintentionally.
palata 13 hours ago [-]
Nobody talked about a deficiency in Nix, but it was an answer to:

> It eliminates the fear of letting AI's wreak havoc on your system and render it unbootable

anon291 1 days 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!
lloydatkinson 1 days ago [-]
Is this open source? I've got a goal of pressing a power button on a blank machine and getting NixOS installed on it via PXE.
anon291 8 hours ago [-]
Not really no. I don't do anything fancy. Just a shell script to generate a pxe image using the existing nix infra and another nix derivation to enable a dhcp server with tftp. I use standard nixos options. No real invention tbh
keybored 1 days ago [-]
Old, solid and futuristic-good tech? Congrats, now the discourse is overrun by people talking about machines using it.
dirasieb 1 days ago [-]
AI is futuristic-good
keybored 15 hours ago [-]
lol, no it isn’t. AI is in a whole other class. It is dystopian-good.

But technologists, with their physical-wise and perspective-wise myopia, get all enarmored with how shiny the new toy is and how they can use it in the honeymoon phase.

Acrobatic_Road 1 days 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 days 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 days 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.
pxc 1 days 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 days ago [-]
Interesting. I've just been using bubblewrap but this one has more flexibility. Thanks for sharing.
nextos 1 days 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.

eblanshey 1 days 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 days ago [-]
maybe back up your important files?
jmoggr 1 days ago [-]
zfs snapshots, which its now allowed to touch.
anon291 1 days 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 days ago [-]
ZFS and many other filesystems have snapshots. LLMs don't go around deleting snapshots yet.
0x457 1 days ago [-]
I had Fable 5 plan migration for a nix host, there was a stage where it needed to add partitions to an existing disk. Multiple times it told me to just run this disko command, multiple times I to make sure its safe because IIRC this will partition and format entire disk, every time it told that is safe.

Anyway, almost got hit with "you're absolutely right", I mean I did, but I was skeptical enough to read the docs myself first. Another time, Opus 5.5 nuked some of my snapshots because it needed disk space, and these snapshot happen to contain a lot of data that was deleted. It did have my indirect blessing to do it, but still.

AlexErrant 1 days 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...

harshreality 1 days ago [-]
Anything an agent is able to do, it will probably do eventually, without confirmation.

For this, offline backup might not have been necessary, and not many people have 3hr old offline backups.

`git fsck --unreachable`, although tedious, maybe could recover the commits with enough dedication, if gc hasn't run.

Further measures to keep that from even being necessary:

Is the filesystem btrfs or zfs? Snapshots are your friend (there are existing snap+replication solutions like btrbk or sanoid -- in this case, to be configured to take a series of snapshots without subsequent replication).

Another potential mitigation is to run a master git repo with force-pushing disabled, and have the agent clone/pull from that. Joint use of a single local repo -- with fragile stashing on your part, and an agent also manipulating the repo without confirmation -- seems dicey.

IgorGanapolsky 8 hours ago [-]
[dead]
greenavocado 1 days ago [-]
That is wild. Do you happen to work in the same verticals Anthropic is trying to compete in? LOL
7bit 15 hours ago [-]
[dead]
TacticalCoder 1 days ago [-]
[dead]
dblooman 1 days 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
throooooo 1 days ago [-]
One could say the same thing about not running tests and CI steps locally. People still do it because iteration times are crap just doing those things remotely. Although this matters less if you have an agent hammer on it while you do other things.

For local dev, nix is extremely nice for activating the exact environment specified in the flake. Dev/build time/prod/etc. all match up exactly.

martyfunkhouser 1 days ago [-]
Time Machine could do that in 2006.
tiffanyh 1 days ago [-]
That's completely different.

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

pxc 1 days 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 days 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.

pxc 1 days 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.

ndriscoll 1 days 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`).
tosser811 1 days 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."
tecleandor 1 days 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.

orbital-decay 1 days 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.
martyfunkhouser 1 days ago [-]
Solved in 1971 with UNIX permissions.
tosser811 1 days ago [-]
Rsync could do that in 1996.
Forgeties79 1 days 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 1 days ago [-]
I really disliked the time machine UI. It was easy to setup and forget, for sure.
Forgeties79 1 days 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.

FireBeyond 1 days ago [-]
Until, inevitably, one day, it would just stop working. And you'd have to start afresh. This could be anywhere from 2 weeks to 3 or more months, in my experience, but I never had a durable Time Machine experience.
Forgeties79 22 hours ago [-]
Never had an issue on my end! Guess YMMV
cloudfudge 1 days ago [-]
And dd could do it decades before that. This entirely misses the point of what nix/nixos does.
linux4dummies 1 days ago [-]
[dead]
Daviey 1 days ago [-]
I am genuinely sad to share this, but a life-time ago I was a Ubuntu Core Dev, on the Release Team, the SRU team, the engineering leader responsible for Cloud and Server and Debian Maintainer... I've had dozens of personal machines (both server and desktop), and supported tens of thousands servers/cloud machines and even spent time at the founders home.... Ubuntu made me the person I am today... but I'm now a Nixos User.

Linux to me created a super experience, with everything feeling "clean" compared to Windows, without the need to reinstall every year just to have a workable machine. Somehow Ubuntu lost this in me, but Nixos has given it back. Really sad about this.

hart_russell 1 days ago [-]
Don't be sad it's over, be glad you can now put your entire operating system into version control
dbeley 24 hours ago [-]
It's actually something I wondered about NixOS : this is a Linux distribution that attracts a lot of advanced users, leading them to abandon the Linux distributions they previously used.

Once all the advanced users have moved to NixOS, what will become of the less advanced users?

tosser811 24 hours ago [-]
NixOS doesn't even show up in the November Steam survey (top 15 distros.) I don't think it's going to happen anytime soon, if ever.
ameixaseca 4 hours ago [-]
This says a lot about the distributions Steam users are using. This says nothing about the overall Linux distribution usage statistics.
aitchnyu 16 hours ago [-]
I ask my coding agent: clean up the KDE stuff cluttering my menu in my Fedora Gnome install, why am I running out of space on /, why did XYZ keep crashing etc.
yjftsjthsd-h 18 hours ago [-]
> Once all the advanced users have moved to NixOS, what will become of the less advanced users?

They move to a noob-friendly NixOS respin. As easy as it is to respin the thing, I'm vaguely surprised we're not already overrun with NixOS derivatives.

charlieflowers 20 hours ago [-]
Do you get the benefits of something like Arch Linux specifically tuned to your needs? Is that one of the goals?
Daviey 7 hours ago [-]
[dead]
aaronchall 23 hours ago [-]
I used Ubuntu for 12 years - Now I've been on NixOS for 5 going on 6.
kubafu 1 days ago [-]
Thanks NixOS maintainers for everything you do! 9 years of NixOS for me and I can't ever see myself going back.
Cyph0n 1 days ago [-]
+1, thank you for all the amazing work!
weightedreply 1 days ago [-]
I used NixOS for a couple years pre-LLM's. I'm still using Nix (well devenv). I ended up switching to Fedora Kinoite for immutability and SELinux support. But I'm still very interested in NixOS.

I've become anxious using packages from nixpkgs or AUR. I'd prefer user programs running on my system be inside a flatpak/podman/VM. Do NixOS users worry about supply chain attacks from nixpkgs?

__MatrixMan__ 1 days ago [-]
I think we (NixOS users) worry only slightly less about supply chain attacks on nixpkgs than we would about installing a package via something like homebrew.

The connection between code and installed binary is more fully specified in nixpkgs. You can of course still hide a malicious payload, but the hiding places are all worse than they'd be otherwise: a little more likely that the bad guys would get caught, because now they have to hide in the open.

neobrain 17 hours ago [-]
For server software, note that NixOS configures systemd services to apply similar (sometimes stronger) isolation mechanisms as running inside a container would (e.g. DynamicUsers=true).

You're right to be concerned about the supply chain risks though -- bubblewrap was mentioned below, but there's not really any good practical solution to it right now unless you want to define wrapper commands for each of your binaries. (I'm not sure the risk is much (any?) higher than with any other distro though, or especially if the alternative had been to compile from source instead)

zaik 23 hours ago [-]
I think it is more likely that some upstream starts being malicious rather than somebody injecting something into nixpkgs. Maybe a nixpkgs committer could hide a malicious payload for long enough, but this is a much more select group than people who can upload to AUR.
weightedreply 9 hours ago [-]
But it does appear anyone can fork the repo and create a merge request for a new package?¹

The shared sandboxing solutions are interesting and I could see myself returning to NixOS once sandboxing, secure boot, and SELinux are standardized.

¹ https://wiki.nixos.org/wiki/Update_a_package

funcDropShadow 17 hours ago [-]
I am using jail.nix [1] a nix library to declare jail wrappers for programs in nix. It is based on bubblewrap. At this point my agents automatically propose to wrap any new tool I ask them to add to my nixos, if it is something to be packaged by myself. E.g. random tools distributed via npm. There was also an interesting talk about it: https://www.youtube.com/watch?v=BV9467UDgDA And I use microvm.nix to create sandboxes for agents.

[1]: https://git.sr.ht/~alexdavid/jail.nix

Vinnl 12 hours ago [-]
I switched from Silverblue to NixOS, but kept the habit of using Flatpaks for most of the GUI apps I use, using https://github.com/gmodena/nix-flatpak
yjftsjthsd-h 18 hours ago [-]
> Do NixOS users worry about supply chain attacks from nixpkgs?

Yes; at least some of us are banging our heads on how to efficiently sandbox arbitrary packages from nixpkgs. (It's easy enough to wrap bubblewrap over any one package, but if you want to do that at scale it's a pain right now. It also provides the pieces to neatly run things in containers or VMs, but again, too much per-package work.)

gausswho 1 days ago [-]
I went the opposite direction as you. Indeed I chose Silverblue over NixOS at first becauase of that exact concern. Was even hand-rolling a Nix-like tool for a while to smooth the salve the immutability pains.

But the death-by-thousand-container-cuts eventually made me go with NixOS and I'm so happy with it. Feels like every brick I lay is foundation instead of Jenga. It was podman corrupting for the umpteenth time that finally did me in. I just don't think Flatpak + podman will ever be ergonomic enough for me, much as I appreciate them attempting to solve what might be Linux's biggest problem.

NewJazz 1 days ago [-]
You can build a nix-based container or vm image and run that, but I'm not sure what kind of tooling exists for that.
chriswarbo 1 days ago [-]
That can be specified quite nicely in a NixOS config: the NixOS config for the container/VM is just a nested value inside the host's config.
shiftingleft 1 days ago [-]
I had my slopbot write nook for this:

https://github.com/ambiso/nook

I now use it for most of my development work, and have a separate sandbox for games or higher risk/confidentiality work. You can also wrap any nixpkgs package with fairly light configuration with it.

cloudfudge 18 hours ago [-]
This looks neat. I'll check it out.
tosser811 1 days 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 days 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 days 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"

Cyph0n 1 days ago [-]
Yeah, but what else do you really need to add a new package? Hydra (the CI server) will build all packages and run all tests, including NixOS integration tests. Everything else is handled via user bug reports.

It’s definitely not a curated set of packages like Debian, so it’s up to you to be reasonable about what you’re installing. Stability of packages has been stellar in my experience.

pbsds 17 hours ago [-]
There is _some_ curation, in the form of what package addition PRs ultimately gets merged and not. But the bar is lower since being packaged in nixpkgs does not entail general endorsement of that package, it simply meant that someone cared enough about it to package, review, merge and maintain it. Package additions are the least likely PRs to get merged https://maintainermode.org/state#kinds
pbsds 17 hours ago [-]
Neither cargo or pypi are examples of mass automatic package import. But typst packages, hackage, gnome extensions, and CTAN for example are. Cargo, npm, zig, and composer dependencies are fetched using upstream lock files when building such packages, all of python3Packages is packaged manually.
forgotpwd16 1 days 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 days 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.
unshavedyak 1 days 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.

YoshiRulz 11 hours ago [-]
> 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.

There is such a thing for Nixpkgs: https://determinate.systems/blog/nixpkgs-cooldown/#reducing-...

And of course there are many SBOM tools for vulns which are known and assigned a CVE. One tool was posted here recently, haven't had the opportunity to try it yet: https://news.ycombinator.com/item?id=50046864

jml7c5 1 days 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 days 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.
eventualcomp 1 days 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 days ago [-]
NixOS has binary package caches. It is usually just downloading and installing like any other distro. My NixOS systems don't rebuild anything.
kalaksi 1 days ago [-]
Mine sometines did and it can be a pain especially if running low on resources.
doubled112 1 days ago [-]
The raspberry Pi I tried it on needed to build a kernel before I got started

I am not that patient. It runs something else now.

saintvlad 1 days ago [-]
[dead]
6ak74rfy 24 hours ago [-]
I made my first two contributions to the NixOS ecosystem and both of those shipped with this release. Slightly excited about that!
Powdering7082 23 hours ago [-]
Thank you!
theYipster 20 hours ago [-]
NixOS is endgame Linux. It's the have your cake and eat it too distro! Bleeding edge + rock-solid stability. From a single config set stored in GitHub, I run an aarch64 build that lives in Parallels on my Macbook Pro M5 Max and a native x64 build that lives on my PC. Desktop, apps, and workflows are kept in sync. It's a thing of beauty.
linsomniac 1 days ago [-]
Help me understand this comment I got about a NixOS comment ~a month ago: "No legit enterprise is running that clownware — ever."

I assume it is a reference to some of the project administration issues they were having ~a year ago? Or is there something else I'm missing? TBF, I was saying, in reference to switching away from Ubuntu: I'm thinking about NixOS for servers. Because it's been stellar on my desktop.

Now, I doubt my company qualifies as a "legit enterprise", but we will probably stick on Ubuntu because it's a supported platform for Kafka, and that's really the only thing that we need "supported platform" from.

But I've often thought back to that comment and wondered if there was anything of substance behind it.

KingMachiavelli 1 days ago [-]
Anthropic, Jane Street, Shopify, PDT Partners, Anduril etc. are all big companies using NixOS.

Enterprise typically means established (already has a working solution) and less likely to adopt new technologies. Large enterprises outside of tech don’t make decisions only based on technical merit. NixOS has very few enterprise/commercial providers - RHEL and Canonical will absolutely sell you a support contract.

Nix is also very opinionated. If your org is already Docker or k8s based then Nix is a harder sell. (Even if Nix is the better option… are you going to retrain a 50+ SRE team?)

Frankly, I don’t know who would still use Ubuntu on servers at all in 2026. It’s a very GUI/desktop-focus distro. I’d expect Kafka to almost exclusively be deployed using the container image which is Alpine based.

ngruhn 19 hours ago [-]
Can I get rid of k8s if I use NixOS? Genuine question.
yjftsjthsd-h 18 hours ago [-]
I wouldn't suggest that, but I have used nix to build OCI images that we ran on k8s in prod, and NixOS would probably make a fine k8s host OS, so you could do a nice nix-k8s-nixos sandwich.
bkaraaslan 18 hours ago [-]
you cant, the k8s works as a cluster, and there is no scheduler in nixos to schedule containers or workloads in another server

for local one node cluster, k8s adds too much overhead and management, i like podman/quadlet for that, i dont use nixos for daily driver, so it may have a feature that im not aware of that can replace podman/quadlet

titanomachy 1 days ago [-]
It's not the way that big enterprises do things now, but I don't see why it couldn't become common in the future. Maybe it's just that no one big wants to be the first to adopt something experimental and different that came from the open-source community? Google adopted Linux when they were still small and scrappy.

All the "digital-native" big enterprises at this point have a good-enough solution to the the problem of reproducible, hermetic builds, with a lot of tooling built up around it. I'm not sure that NixOS would be enough of a value add to justify retooling such a foundational and already-standardized part of their stack.

So my prediction is that some new company will build their tooling around NixOS, then become a big successful company, and then others will copy them because it's now proven at "enterprise" scale.

linsomniac 1 days ago [-]
I'd buy that, but that hardly makes it "clownware". There must be something else under that comment, assuming there's any substance to it at all.
chriswarbo 1 days ago [-]
There's been drama involving some core contributors (and the founder), which AFAIK has lead to a bunch of internal committees and working groups spinning up and fizzling out. There have also been some forks, which remain largely compatible and also seem to have motivated some tech debt removal, modularity/decoupling, etc.

As a user, I haven't noticed any negative effects on the software.

dabinat 1 days ago [-]
I don’t know what that person was referring to, but it might be that NixOS doesn’t have LTS releases and each release only has security updates until the next one. So you have to do major upgrades twice a year.
deviantintegral 21 hours ago [-]
As a ~1 week nixos user trying it out in my homelab, I’ve been really surprised at how many packages lag behind upstream sources. Lots of cases of fixed security bugs going unfixed until the next release in the long tail of packages.

AI has absolutely made it a joy, especially with its incredible testing framework!

It’s in no way “clownware” though. I had a wonderful contribution experience getting some sqlite fixes back ported. It just seems like they need something more like the Debian security team.

Guvante 1 days ago [-]
NixOS doesn't really have hermetic builds if it did there would be interest from enterprise companies

Until then it is yet another flavor of tech to add to do the same things they are already doing.

There is no orchestration which is basically the main thing there is interest in for this kind of tech.

KingMachiavelli 1 days ago [-]
How do you mean? Nix builds are hermetic? That’s the entire point?

Or do you mean things like CPU architecture and time() syscall?

Orchestration is always going to be a stateful problem. Nix on k8s works fine but it would be cool to do something more Nix native.

Mathnerd314 23 hours ago [-]
From a technical perspective, the Nix package manager / build system is based on a system where each build is in a folder with its naming having a hash. The hash is determined by hashing all of the inputs. This ensures that different builds go to different locations if something changes. However this means even trivial changes like adding a space to a file will create a new folder and hence require a new build. And moreover this effect is transitive, so patching a common library like glibc will essentially rebuild the world.

From an enterprise perspective this is undesirable as frequently rebuilding the world is costly in terms of storage and compute. "Imperative" systems like apt, Terraform, etc. provide similar capabilities at less cost. Some companies are willing to pay the added overhead of frequent rebuilding for the reproducibility guarantees, but "real" enterprise systems like Bazel or Buck 2 implement change management and propagation to avoid rebuilds. The Nix system in contrast is somewhat bespoke and idiosyncratic due to its academic origins and would require a major rewrite to avoid this design flaw, which seems impossible given the current project priorities.

Another issue has been that the Nix language is slow - the C++ interpreter does tree-walking and Nix's lazy evaluation uses a lot of memory and makes optimizations difficult. In contrast Starlark is a simpler language and the implementations use more efficient bytecode implementations.

Overall NixOS is just like its logo - a special snowflake. It is usable in personal environments and for various applications but if you try to use it at scale you will run into a lot of technical limitations that make other solutions more workable.

clhodapp 22 hours ago [-]
A lot of the claims being made here don't stand up to scrutiny.

Imperative systems do not "provide similar capabilities" unless your level of resolution is "well, it said it succeeded and it started the service". You're giving up a tremendous amount of meaningful functionality if you try to replace nix with apt.

Bazel and Buck 2 are not immune from rebuild-the-world (e.g. if you update to a new libc with new headers). And at some point, rebuild-the-world is actually the correct and necessary behavior.

Far from being "nearly impossible to solve" "due to its academic origin" or "given the current project priorities", nix already has an experimental content-addressed derivation feature shipping in every recent version, which continues to see development progress.

Mathnerd314 7 hours ago [-]
I think it is your claims that don't stand up to scrutiny.

From my perspective there is not much difference between writing a nixos config and writing ansible+terraform configs. It is true that under the hood they work differently but being able to install a package with apt rather than having to use the nixpkgs repo is not a loss of meaningful functionality but rather a gain. In contrast installing a random binary .deb is complex in Nixpkgs (although it is possible). And if you use NixOS you are locked into the non-FHS layout whereas if you use Debian as the base system you can still install Nix packages where convenient and then also traditional packages.

And it's true rebuild-the-world is unavoidable in some cases but it is a game of averages, on the whole Nix uses more resources than imperative-style package managers. Like https://github.com/NixOS/hydra/issues/421 hydra uses 375-400 GB but Arch Linux mirror uses less than 300. https://wiki.archlinux.org/title/DeveloperWiki:NewMirrors#Mi... At current S3 prices this extra 100GB is only $27/year but then there are the bandwidth and compute costs of frequent rebuilds and re-downloads which are harder to measure. And these costs can be easily avoided "just" by switching package manager and not using Nix and putting up with the occasional version mismatch issue (which Nix also has, and arguably multi-versioning is about as tricky in Nix as with apt etc.).

The "experimental" content-addressed derivation feature has been experimental since 2021, that is 5+ years ago, and it is still early prototype phase. I don't see how this length of time can be anything other than a project priorities or fundamental design issue. Normal package management features, even major ones, do not take nearly this long - for example DNF yum started 2011, was widely available in 2013, and was made the default in 2015.

adamhartenz 1 days ago [-]
Did that comment include that em dash?
charcircuit 1 days ago [-]
Also take a look at the situation of running 3p software. The linker can't find the libraries. The community also for some reason has a habit of forcing projects to adopt a flake file within someone else's repository or they beg other projects to change their script shebang to work on NixOS. Instead of fixing their operating system which they themselves broke they go around to every piece of software and make them fix it. This is not a serious approach.
KingMachiavelli 1 days ago [-]
There is no barrier to running 3P software. You can easily wrap anything in a FHS environment.

On a regular Linux distro there is no guarantee that the shared libraries for a prebuilt binary are correct. There’s no guarantee that /bin/bash or glibc.so is compatible with all software.

You can’t produce formally verified software if your build system uses /bin/bash or random system environment libraries. From a formal verification perspective, all other projects are wrong and Nix is more correct. This is the only serious approach - the old way was always a hack.

charcircuit 21 hours ago [-]
>You can easily wrap anything in a FHS environment.

This is a horrible user experience. The user should not have to wrap anything. They should just be able to double click and have the program run.

>On a regular Linux distro there is no guarantee that the shared libraries for a prebuilt binary are correct. There’s no guarantee that /bin/bash or glibc.so is compatible with all software.

And the solution is to create a proper container that developers want to use. The whole idea that a developer needs to have their software package with nix, and then all of their dependencies package with nix, and then after all that work it's not even something that can be used by all of their users.

KingMachiavelli 9 hours ago [-]
> They should just be able to double click and have the program run.

This isn’t how any Linux distro works? You are just perhaps lucky on regular distros since they all tend to use the same glibc version… until they don’t. Or do you mean Flatpak/AppImage?

On NixOS, you can perfectly implement this by using “nix-ld” which allows you to automatically run 3P binaries in a customized FHS environment.

> And the solution is to create a proper container that developers want to use.

Containers are even less portable then Nix! Containers depend on OS specific features like namespacing. NixOS is Darwin native; I can do full MacOS native hermetic builds and configure MacOS services and environment all without any Linux VM.

Containers are just more well known - that’s just a preference. I’m sure developers objected to using containers back in 2008. Containers don’t magically make Node/Python builds reproducible - they depend on caching intermediate results.

Containers do nothing to make cross compiling easy. Containers don’t allow composing anything together other than containers - so your SOL if you do kernel or embedded development.

I actually agree that Nix is an imperfect - it’s good enough to eat all software (see stats) but long term I agree it should be re-implemented to have a type system language, written in rust, etc.

charcircuit 7 hours ago [-]
>This isn’t how any Linux distro works?

I don't care. I'm saying how it should work. You can make up excuses on why that is hard, but that is not the user's problem.

>Containers depend on OS specific features like namespacing

You can have a container without namespacing. Look into what a .app is on macOS for an example of such a container.

>Containers don’t magically make Node/Python builds reproducible

That is why I used the word proper. Also, builds don't need to be reproducible as long as the developer is committing to support it. Of course it makes the developer's job harder but that's not a concern for the end user.

>Containers do nothing to make cross compiling easy.

That's not the job of a container.

>so your SOL if you do kernel or embedded development.

If you aren't developing apps then it is out of scope of what I'm talking about.

max-privatevoid 12 hours ago [-]
> And the solution is to create a proper container that developers want to use.

What constitutes a proper container?

> The whole idea that a developer needs to have their software package with nix, and then all of their dependencies package with nix, and then after all that work it's not even something that can be used by all of their users.

How does this not apply to every other packaging mechanism out there?

charcircuit 7 hours ago [-]
>What constitutes a proper container?

An artifact that contains what is needed to run the app and identify it.

>How does this not apply to every other packaging mechanism out there?

It does, and unfortunately most packaging mechanisms don't care about having good ux.

max-privatevoid 4 hours ago [-]
If you want the properties you're talking about, developers are going to have to bite the bullet one way or another. Nix produces these all-encompassing artifacts with all dependencies included, where all the end user has to do is download and run the app, but if you want to bundle the world, you obviously need to package the world.
pbsds 17 hours ago [-]
If you don't care for strict reproducibility, you can easily run foreign binaries and scripts by setting up nix-ld. You can even setup a /bin and /usr/bin to your liking.
charcircuit 7 hours ago [-]
There user should not be the one who has to worry about this. It should work out of the box on NixOS. I don't care if there are 3rd party work arounds. This is a criticism of NixOS itself and how they make their own OS.
pbsds 3 hours ago [-]
A deliberate design decision with provided escape-hatch
max-privatevoid 48 minutes ago [-]
To add to that, this was literally the reason NixOS was made in the first place. It was made to not provide global "dependencies" in any of the usual places, to give developers the assurance that their software does not accidentally depend on undeclared dependencies. Given the primary purpose of the OS is to do that one thing, I don't think "well it shouldn't do that" is useful criticism.
charcircuit 3 minutes ago [-]
They could symlink libraries from where apps expect them to be to the nix store. They already do this in a limited capacity.
max-privatevoid 1 days ago [-]
Are we trying to emulate Microsoft Windows, in that we accumulate more and more compatibility hacks over time, and for every file, have ten compatibility symlinks pointing at it, or would it be better if we simply asked people to change the shebang in their script so it uses the standard location? It doesn't matter to a NixOS user how broken your software is. Everything can be patched downstream. Though maybe you'd like it if your software was a little less broken.
Asooka 17 hours ago [-]
>compatibility hacks

AFAIK there are very few, if any, of those in modern windows. It just keeps existing APIs stable, so developers can target the OS and be sure their programs still work next week.

charcircuit 21 hours ago [-]
Yes, operating system updates should almost NEVER break apps.

>would it be better if we simply asked people to change the shebang in their script

We are not talking about one weird edge case. We are talking about millions of scripts.

>Everything can be patched downstream.

This is a waste of resources when you could just support it without any changes.

cdmckay 1 days 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.

chickensong 1 days ago [-]
I've used a lot of Linux over the years, from 90s Slackware, RedHat tree, Debian tree, et al., and while I admire and respect the classic distros, there have really only been two that excited me: Gentoo and NixOS.

I eventually left Gentoo because I was at a time in my life where I needed the OS to get out of my way and just work, mostly serving VMs and boring services. Thank you Debian. But after many years of config management for various systems using various tools, I pulled the plug and retired many thousands of lines of automation that worked very well, and switched to NixOS. I have no regrets.

NixOS reminds me of Gentoo, in how it enables you to really make the system your own, like a custom tailored suit, but it does so in a way that promotes stability, giving you tools for experimenting safely. An integrated declarative language to describe the system is what sold me. Anyone in the ops world will appreciate what that means. Admittedly, I've never enjoyed the Nix language, but now it's less painful with the clankers.

My config is built around flakes, Home Manger, microVM, and agenix, with HM as a module under the flake. A little framework around microVM gives me sandboxed shells, agents, or GUI apps, built from the local Nix store. It feels really nice and I've never been happier with my computer. Thank you NixOS!

nickthenerd 11 hours ago [-]
I work on embedded linux, and Avocado Linux is the closest I have found to Nix. Having worked in Yocto for years this is so much easier and faster. Basically instant builds. https://github.com/avocado-linux/avocado-cli
aliasxneo 1 days 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.

Cyph0n 1 days ago [-]
I have been using it for a little less than 5 years now, and I am really struggling to think of any impact all the procedural “drama” had on me as an end user.

Releases were out on time, issues were fixed, my PRs were reviewed. So I have always been confused by this hyper focus on Nix organizational internals from end users.

Sure, if you’re a corporate sponsor of the project or something, you would want to know that the project is in good hands. But does it matter for someone like me who’s running NixOS in their homelab?

throooooo 1 days ago [-]
What community interactions have you had that caused you to form this opinion? So far I've only opened a few package upgrade PRs and posted on discord when they weren't getting attention. And the experience was "fine."
aliasxneo 1 days ago [-]
This is going to be a cop-out answer, but I'm just not going to re-litigate the past here. Suffice it to say, at $day_job I worked with some individuals that were _deep_ into the ecosystem. So much so that any drama in the Nix community tended to spill over into $day_job. Based on what I saw at that time, I wasn't confident in the longevity of Nix. I ended up taking the team I led (who were all tired of Nix) to a more "standard" Docker-focused setup and was immediately ostracized by like 90% of the engineering org. Which really just reflected how I saw the Nix community.

I'm sure everyone has had different experiences, so I'm not proposing mine is authoritative at all.

throooooo 1 days ago [-]
Sounds like immaturity tribalism local to your workplace. I've never worked anywhere with a dynamic like that. Leadership supported that eh?

Tools should be evaluated and chosen based on their capabilities and the requirements for the job.

aliasxneo 19 hours ago [-]
Leadership was heavily intertwined with the Nix community, so there wasn't much separation of concerns.
gf000 1 days ago [-]
For general dev work, you may not notice it depending on your stack.

But for actually managing your system itself, I don't think anything comes close. That I can just try some random service with a single line in config, check it out and remove without it trashing my whole system, this is simply not a thing. And this applies to much more complex stuff like some one of kernel option and whatnot.

kalaksi 1 days ago [-]
I get the appeal and use NixOS on some hosts, but in practice, thrashing my system with package managers or containers hasn't really been a problem for me.

I've used different kinds of config management and (declarative) deployment tools and my current favorite for hobby servers is Fedora CoreOS and docker/podman-compose.

rch 1 days ago [-]
The community is entirely predictable, the same way plutonium is.

I'm still an avid user but it's not welcome at work.

rhines 1 days ago [-]
As someone not involved with the community, what issues would you expect it to cause at work? My impression was the whole point of Nix is declarative configuration and clearly pinned dependencies, so I wouldn't expect any drama in the ecosystem to affect production systems?
breadlover42 11 hours ago [-]
NixOS with a good GUI tool (think YAST) and an easy way to run unpatched binaries would be a top tier beginner system. The repositories contain everything and it's easy to keep your system clean. Even "tricky" stuff like changing desktop environment is a breeze.
miketery 22 hours ago [-]
NixOS is great. After a decade of using debian / centos for various VPS instances, I finally decided to give NixOS a try.

Agents make it a breeze. I'm using NixOS on a miniPC next to my router.

For anyone that's reluctant because its a different / new paradigm I recommend you give it a shot.

AyanamiKaine 14 hours ago [-]
I really love NixOS. I personally use mostly the unstable branch and it is quite stable!

The most feature I like is being able to define a config my server and run it locally in virtual machine on my dev pc. Its something so easy, its crazy.

It helps configuring my server without directly working on it.

ethin 1 days ago [-]
I love NixOS, probably will wait a few months before upgrading though. I run it on my server (and did for a while on my laptop too) and it's always been fantastic for me. It's just a shame that more and more DEs are dropping X11 support given that X11 is still the only way to get the level of accessibility I would expect any reasonable desktop environment to provide. Maybe what X11 allowed was unintentional side-effects more than intended behavior but still.
ptman 21 hours ago [-]
Don't wait too long. 26.05 support ends by end of December.
helfire 1 days ago [-]
NixOS desktop is a treat - can pick anything desktop manager(KDE, Gnome, Steam), switch between anything - never worry about messing up your system, one file to describe everything. Backup your home folder and flake/configuration.nix and you're gtg. I'm a maintainer of a few random packages that I'm interested in and nixpkgs makes it easy to get involved.
adamcharnock 1 days ago [-]
Very much piggybacking on this thread as there are a lot of Nix fans here, but a friend and I just announced https://kix.run literally yesterday. It is a re-imaging how one could interact with Kubernetes given what we have learned from Nix.

And as others have said, working with Nix in the AI era has been a huge pleasure. All our servers are now on NixOS. A big thank you to the Nix team!

mehackernewsacc 16 hours ago [-]
How does this compare to/what is the overlap with https://nixidy.dev/ ?
adamcharnock 15 hours ago [-]
Just looking at nixidy now.

So it looks like nixidy is a rendering layer for Argo CD. One describes applications in Nix, it writes out the manifests, then Argo deploys them. So Nix language + ArgoCD.

I think there are a couple of other projects that have been created to bring the Kix language to Kubernetes (Kubenix as well), but that wasn't really our goal with Kix. We mostly felt there was a better way to approach Kubernetes configuration, and took inspiration from Nix. Out of this came things like the cluster graph, the various planning/diffing/deploying tooling. Which then supported the idea of having top-down configuration, where the cluster definition adapts to what is needed.

So now you change one setting and the cluster will adapt to work on EKS/AKS/Scaleway/bare-metal/etc. Or can can change another setting to adjust the high-availability requirements, and the Kix packages will all adjust for the new requirement (setting spread constraints, disruption budgets, etc, or erroring if the cluster cannot provide the HA-level needed).

So we're actually pretty open to not actually using the Nix language at all, but it was just the thing that seemed to suit our needs best.

Further questions/feedback are very very welcome.

gausswho 1 days ago [-]
Very comepelling. Would you say this still requires a strong understanding of k8s to build with? I'm finding the kix.run marketing page... unsavory to read, but going through the docs page feels better. I'll kick around the tutorials a bit later.
adamcharnock 18 hours ago [-]
Thank you for the feedback! I can imagine a few things you find unsavory about the marketing page, but rather than bias you, would you be ok with telling me what they are?

Re-working it is definitely on the cards.

To answer your question: we do think it does (or has potential to) take away a lot of the sharp edges of k8s, and simplify a lot of concepts (while also providing escape hatches). But naturally it would be great to have feedback on that too!

submain 1 days ago [-]
I'm curious, how do you manage your nixos inventory?

I was using colmena for all my nixos servers. But keeping everything up to date was kind of a pain.

adamcharnock 1 days ago [-]
We have a system that does rolling updates of each cluster, and can detect how disruptive an update will be in advance. Right now we just do this on a manual schedule, but we’re looking at automating this soon. We also use Colmena. But I’d certainly be interested in hearing of other people’s experiences / solutions.
submain 7 hours ago [-]
That's helpful, thanks for sharing.

I ended up making a little script that pulls from a repo + branch whenever it changes and builds it on the host itself. Only applies commits that are signed.

I put our custom packages/derivations on a central nix cache so they are not built by the hosts.

madeofpalk 1 days ago [-]
As someone who has been personally aggrieved by jsonnet, thank you!!
adamcharnock 18 hours ago [-]
Thank you! Feedback of all kinds is super welcome, should you have any further thoughts :-)
marshray 1 days ago [-]
I just tried getting started with NixOS on a laptop. I like it and plan to migrate more stuff to it, particularly given Ubuntu's latency of delivering security updates.

It's so elegant in some ways that it makes up for the other ways that it's just a complete mess. Nothing's perfect.

colordrops 1 days ago [-]
which parts are a "mess"?
hexasquid 24 hours ago [-]
Docs I'd say
sally_glance 1 days ago [-]
It's true, nix is to os what lean is to math. Do it and enjoy or don't and fall behind
rcarmo 1 days 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)
kodoman 1 days ago [-]
Long time user and think nix is great but have found NixOS a little more annoying recently.

The constant deprecation of service options and finding that for building VM's the heaviness of systemd and the rest of the system is an annoying issue. I have found I have to change a lot of my config's when switching to later nixpkg versions and the nixos tooling can still be annoying.

I do think nixos is a trail blazer though and actually what you do get particularly with nix is something that is so useful.

I say try nix first before you go full hog with nixos.

yewenjie 1 days ago [-]
Anything really cool that has come up in the Nix ecosystem in the last one year? I haven't kept up.
Gravityloss 1 days ago [-]
Do any corporate hardware vendors offer official support for NixOS?
gausswho 24 hours ago [-]
NixOS in the age of LLM feels like a superpower. For many years I'd chase a white whale in Linux and even if I finally solved it, my solution would rot away or I'd lose it in a distro hop. That problem has disappeared.

I don't surrender. The chase is enjoyable now, because when it's done it feels (almost) permanently done. And done on any machine I'll ever run.

My 15 year old DSLR now reliably sends a video feed to any computer. Half broken hard drive enclosures get the kernel flags to consistently work. A stream deck gets put to use. Nightly processes work consistently.

I'm now taking this ethos into remote servers I manage. Containers are you how you contain entropy. But then everything's an ephemeral dumpster fire. With NixOS they're actually as personalized and cozy to work with as my local machines.

mbrumlow 1 days ago [-]
What ever happened to lix?
tfrancisl 1 days ago [-]
It is still kicking and getting updates from its small team. It's the flavor of the lang / evaluator i personally use everywhere.
RaitoBezarius 1 days ago [-]
And we even have more updates planned (some totally not caused by recent news in cryptography… !), thanks for using us!
shevy-java 1 days 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.)

murderfs 1 days ago [-]
This is already false, Guix does the same thing.
jnpnj 1 days ago [-]
Makes me wanna find a group dedicated to tracking and studying OSes and platforms sharing similar traits. Immutability, functional oriented, verifiability, etc etc
nish__ 1 days ago [-]
Best to just make false claims on HN and let Cunningham's Law do it's thing.
jnpnj 16 hours ago [-]
I often think about this but rarely wanna trigger it. Maybe I'm wrong.
Cyph0n 1 days ago [-]
I mean, Guix was inspired by Nix no? But yes, it does provide a similar experience to that of NixOS. I have never used it, but I heard it’s sometimes rougher around the edges and less documented than NixOS (which itself is lacking in this area!).
murderfs 18 hours ago [-]
It's a GNU project, so it has the usual GNU hardline stance on non-Free Software. This means that if you don't own a 15 year old loongson laptop and want your hardware to actually work, you have to use a repository where the first rule of Fight Club is you do not talk about Fight Club: https://gitlab.com/nonguix/nonguix/-/blob/master/README.org?...
zernoshka 1 days 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 1 days 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).
zernoshka 1 days ago [-]
Fair. I can't say I've used NixOS. I've been using chezmoi to deploy dotfiles from a repo, including using Homebrew (on Linux and Mac) to install packages.
Timon3 15 hours ago [-]
Have you looked at mise? I used to use chezmoi too, but mise covers dotfiles, packages and much more. It's been great!
zernoshka 6 hours ago [-]
I used mise in a very limited way to set env files within a directory. It was great for that, will definitely consider using it again :)
nickthenerd 24 hours ago [-]
Avocado OS. It’s like Nix but for embedded Linux devices. And no steep learning curve. https://github.com/avocado-linux/avocado-cli
1 days ago [-]
orbital-decay 1 days ago [-]
Guix/Guix System is a pretty good alternative and a less chaotic ecosystem. It has fewer people behind it, though.
sigbottle 1 days 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 1 days 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.

1 days ago [-]
oniconnect 20 hours ago [-]
[dead]
henriquez 1 days ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 01:39:54 GMT+0000 (Coordinated Universal Time) with Vercel.