TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

20 years of Nix

200 pointsby domenkozarabout 2 years ago

13 comments

amardeepabout 2 years ago
I have been exploring nix for the past few months and my experience with nix has been both exhilarating and frustrating, simultaneously. On one hand, I find it hard to imagine not using nix now, but on the other hand, I hesitate to recommend it to other colleagues due to its steep learning curve, ux issues and potential for footguns.<p>I sincerely hope that nix community improves the UX to make it more accessible to new users. Though for those willing to invest time in learning it, nix is extremely useful and highly recommended.
评论 #35209476 未加载
评论 #35212047 未加载
评论 #35208785 未加载
评论 #35209241 未加载
评论 #35209618 未加载
评论 #35214976 未加载
评论 #35209664 未加载
评论 #35215600 未加载
toastalabout 2 years ago
It feels so painful to go back to ‘regular’ Linux now. I&#x27;m so concerned about config file entropy and version incompatibility that Nix has solved for me. I&#x27;m happy I took the Nix Pill though and completely skipped over Docker and it&#x27;s often-unnecessary overhead. Nix store is a better solution to reproducible builds, and the syntax is a lot better than LISP for Guix or whatever Skylark is trying to be.<p>Currently I&#x27;m setting up a second machine to distribute builds and share a cache on my local network. Overriding C flags Gentoo-style for better optimization is supported, but it can take a while to build--especially with LTO--as Hydra only builds for generic x86_64 so sharing optimized kernels and other software is great. I successfully got a shared znver3 LTO-optimized Linux 6.1.19 kernel with ZFS support yesterday! I just wish I could have built in parallel the kernel on the faster PC and the ZFS stuff on the slower one and resynced the build input derivations when it was finished after running `nixos-rebuild switch --flake ..`.<p>For the future, I hope distributed Nix caches become the norm like BitTorrent and we can all share optimized builds.
评论 #35300821 未加载
tmountainabout 2 years ago
I’d like to learn more about the project history, who started it (early contributions), and the context under which the early work was initiated. Wikipedia has exactly two sentences on the history. Is there a better version of the Nix story available?
评论 #35208909 未加载
评论 #35208923 未加载
anarchogeekabout 2 years ago
Doe nix work at all? Or is it just not actually functional on top of MacOS? I&#x27;ve tried a dozen times over the years and I&#x27;ve never gotten it working.<p>Seriously, how is anything so hard to use still around after 20 years!
评论 #35209099 未加载
评论 #35209197 未加载
评论 #35209122 未加载
评论 #35209111 未加载
评论 #35209815 未加载
SirensOfTitanabout 2 years ago
What I would like is to replace both Docker and docker compose for prod images and local dev, respectively for my team. Is this possible with nix today? It’s mostly a macOS box team.<p>I use nix flakes to manage my own configuration, but last time I played with building docker images on macOS I had to stand up a builder image on qemu or inside docker.<p>Further, I’ve historically run into friction between other package managers and nix. The poetry2nix and pnpm2nix kind of tools have a lot of friction [for example, private registry support for poetry is poor]. My current project has a dependency on xmlsec and it’s a bit cumbersome to handle building non wheels on M1.
ameliusabout 2 years ago
20 years, is that the compile time now? ;)
评论 #35208924 未加载
评论 #35208772 未加载
shp0ngleabout 2 years ago
nix is one of the things I always think would be neat to try, but I’m always scared away by the complexity.
评论 #35209493 未加载
EntrePrescottabout 2 years ago
I like the principle of Nix that one can simultaneously install different versions of the same software and make layered choices of what version to use with what or depending on the use case. Nix has spearheaded that principle and that&#x27;s great.<p>That being said, that fine-grained layering selection is done via symlinks in Nix afaik, whereas a couple newer packaging systems (e.g. OCI containers or flatpak) can do such layering with newer stuff like bind mounts and namespaces+sandboxing (and I don&#x27;t just mean sandbox for build time but for run time) and thus increase the security by selectively choosing what a package is supposed to have access to. I wonder how fast Nix will adapt to such new possibilities. I think it should do so quickly (e.g. switch to OCI as the underlying layering system; I hear that the Tvix project is experimenting with that?), as that could establish Nix as the dominant system&#x2F;distribution in that field whereas otherwise it would be overtaken and left behind by whatever OCI-container-based distribution manages to come out as the dominant one.<p>There is currently (temporarily) a unique window of opportunity in that:<p>* Docker is totally ruining their position in the OCI world, and had never really put effort into building a comprehensive quality curated distribution. That is: their registry may be &quot;comprehensive&quot; as in large choice, but apart from a small set of base images, it&#x27;s mostly a hotchpotch of low-quality uncurated images with uncertain security… and often found to be of severely lacking in the security domain.<p>* Redhat has a much too closed policy for their OCI registries and has made the mistake of restricting their OCI stuff to the server side while fedora pushes flatpak&#x2F;flathub which is too restricted to the desktop. That artificial chasm between a server-only and a desktop-only system sucks.<p>* Ubuntu has completely borked their attempts at new sandboxed&#x2F;layered package formats, snap sucks. And Debian and the other remaining big distros have nothing in that category<p>Nix has the advantage of already having a large, comprehensive and curated set of packages. All it needs is to adopt OCI as its underlying layering system (instead of symlinks), make its large package base trivially accessible to OCI, and make an effort on UX (a little more accessible and easier) and it could come out as the dominant distribution.
评论 #35221037 未加载
评论 #35219064 未加载
评论 #35218815 未加载
password4321about 2 years ago
I tried to install NixOS using the live cd last week in a Hyper-V VM, but it failed to get anywhere due to SquashFS errors.<p>That seemed pretty low-level so I&#x27;m putting it back on the back burner. User friendliness doesn&#x27;t seem to be a top priority, and that&#x27;s fine.
评论 #35214806 未加载
评论 #35210499 未加载
Ferret7446about 2 years ago
Realistically speaking, Nix will never become widespread. Instead, I foresee immutable OSes like Steam OS, Chrome OS and Fedora Silverblue combined with something like flatpak for installing applications.<p>The evolutionary strategy of reproducible snapshots of state has historically been far more successful than &quot;pure&quot; functional approaches; see Docker for example, or reproduction of DNA based lifeforms.
julianeonabout 2 years ago
Surprising to me that there&#x27;s 0 Nix meetups in the Bay Area, as listed on that page. There should be one!
评论 #35241128 未加载
评论 #35215265 未加载
haolezabout 2 years ago
What happened to NixOps? It sounded like a great idea when I first read about it.
评论 #35209940 未加载
Rapzidabout 2 years ago
Nix feels like a dead end.
评论 #35211752 未加载
评论 #35211826 未加载