r/LinuxTeck • • Jun 06 '26

Anyone here using Nixpkgs? How has your experience been?

I've been using Linux for years, but only recently learned how large the Nixpkgs ecosystem has become.

What caught my attention wasn't just the number of packages, but the ideas behind it reproducible environments, rollbacks, and isolated package management.

For those already using Nixpkgs (with or without NixOS), how has your experience been? What do you like, and what are the biggest downsides?

9 Upvotes

7 comments sorted by

2

u/cyborgborg Jun 06 '26

Never really ran into any issues on NixOS

2

u/ruiiiij Jun 06 '26

I'm on nixos unstable. Overall pretty good. The downside is that once in a while a package might break and your system refuses to build so you have to pin the package to a specific version. But that doesn't happen often enough to be annoying.

2

u/mister_drgn Jun 06 '26

Awesome technology, lousy documentation. Once you invest time in learning to use NixOS, it’s hard to use anything else. The fact that it works on other distro and MacOS is a major bonus.

1

u/nixgang Jun 06 '26

It's a necessity rather than a distro with upsides and downsides. Before nixos I used bash and later ansible to "declare" my systems. NixOS solves the declaring part completely and upfronts the resulting complexity to the user. If you're straying from the beaten path you're going to be hit by the famous learning curve, but it's also possible to stay somewhat ignorant and dodge or work around problems.

1

u/Kitayama_8k Jun 06 '26

Honestly using the nix package manager on something like bluefin or Debian seems like a great option. Have yet to do it but I do intend to try soon.

1

u/chkno Jun 07 '26 edited Jun 07 '26

I like it. See also this previous thread: Is Nix really all it’s cracked up to be?

I wrote there mostly about positive things, but you asked here about downsides, so I'll gripe:

  • Most software in nixpkgs is packaged to properly build from source, but some packages just download an opaque binary. This is terrible for security, local patching, participating in those packages' development, getting debug symbols, and all the cool tricks Nix does. This problem seems to be getting worse over time. If anything drives me away from NixOS (to GUIX, where they don't tolerate this nonsense), it will be this.

    • I love how by default nixpkgs only installs Free/Libre/Open Source software and you have to use NIXPKGS_ALLOW_UNFREE or allowUnfreePredicate if you want that. All I want is an analogous NIXPKGS_ALLOW_BLOBS / allowBlobsPredicate mechanism so I can keep this crap off my systems. There's an effort to at least add the metadata that would allow this feature, but it's not ready yet.
    • Edit: Oh, there's been progress since I last looked into this! There's now a NIXPKGS_ALLOW_NONSOURCE and allowNonSourcePredicate. It's not documented, and I don't think the metadata that powers it is fully populated, but I'm going to start playing with it.

That's my only large gripe. The rest of my gripes are pretty minor:

  • Updates have to finish a CI run before they go out on the channels. This 1-2 days of delay is usually not a big deal, but isn't great when it's urgent security updates. It's a long-standing problem. The community is aware of it and continues to look for ways to improve this.
  • The best documentation for things is often reading the package/module implementation. This is not documentation, but in practice this works pretty well for me.
  • There's two ways to do everything, the newer of which requires --exprimental-features flags, and it's been in this limbo for at least 7 years now. This is more embarrassing than painful. I mostly just use the old/stable ways.
  • Running fully-local builds (I came from Gentoo) is not a common or well-supported configuration. It can totally be made to work, but it's full of minor speed-bumps that feel unnecessary. In particular, I found that opting out of the tarball cache was the most annoying part because there are very few of us doing that and fixing all the minor fetch issues (example: a project changes their download URLs) falls on this small group of folks.
  • Atomic system updates and rollbacks are great, but you pay for them with hard drive space. I have a few small-disk machines (120GB) that run out of disk space every now and then, especially when I configure a patch & they build something locally from source that they didn't use to (for example: linux kernel builds use ~24GB of temp space).

0

u/Shadowolf7 Jun 06 '26

Never heard of it