News for hackers. Stuff that matters.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by jahsome on Wednesday March 13, 2024 @03:49PM (#39696508)
The line about nix making it easier for newcomers in the readme and similar statements always trigger me. I am quite a competent person and I've never once thought "that was easy" when trying to use nix.

I adore the concepts of nix, but the user experience is awful. Maybe that's what this tool solves? It takes a frustrating amount of effort and incessant config tweaking with little to no documentation and navigating seemingly endless already-deprecated methodologies to reach that point. Perhaps I'm just dumb, or looking in the wrong places.

In any case in my experience the end result is every time I see something related to nix, I find myself thinking "I can't wait til that's easy"

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by rochak on Wednesday March 13, 2024 @05:19PM (#39697663)
Hard agree. I see the advantages but the initial learning curve is incredibly steep. Funny how this mimics my experience with Rust.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by paulhilbert on Wednesday March 13, 2024 @04:22PM (#39696957)
"Flox began its life during the deployment of Nix at the D. E. Shaw group, where it quickly proved invaluable by making Nix easier for newcomers".

Is that the line you are referring to? Sounds like the opposite of what you suggests it says.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by jahsome on Wednesday March 13, 2024 @10:17PM (#39699972)
The line suggests the opposite yes. That's why I take issue with it.

There's nothing easy about nix. Maybe flox makes it easier, but I am so burned out by screwing around for countless hours with nix I'm not even going to try to figure out if it's true.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by bitvoid on Thursday March 14, 2024 @12:53AM (#39700714)
I'm confused here. That quote clearly says that Flox makes Nix easier for newcomers, not that Nix is easy. What exactly do you take issue with?
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by jahsome on Thursday March 14, 2024 @01:26AM (#39700839)
The fact that my experience with nix has historically been _so_ difficult, I fear even something that claims to make it "easier" will not be able to deliver -- my aversion has everything to do with nix, and little do with any product which claims to improve it. Consider it guilt by association.

For me, it doesn't simply need to be easier, it needs to be usable. I lack confidence a product which is an abstraction layer is going to solve that for me, because I have a personal inability to understand the underlying system.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by emptysongglass on Thursday March 14, 2024 @02:03AM (#39700964)
Maybe you need to try it out rather than casting doubts about a product you haven't tried yet? Pre-emptively doubting claims based on your past experience with a tool Flox claims to solve seems like a poor way to go here.

For what it's worth, there are a number of options in the Nix space that really do solve for its complexity like Devbox and now Flox.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by jahsome on Thursday March 14, 2024 @12:18PM (#39705839)
Maybe I know that but I'm still too damaged to try? That is the entire point of my post.

Thanks for the "advice" though.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by kenmacd on Thursday March 14, 2024 @09:51AM (#39703990)
If you still use it, my best suggestion is to use a github search for 'path:.nix TERMs' when you run in to issues. It's likely someone already has that custom package, or an overlay to fix that missing compile option, or whatever else it is that you're looking for. I find reading other peoples solutions also helps with understanding and solving related problems.

I'm in no means claiming Nix is perfect, but coming from other distros to NixOS I really appreciate the ability to reboot to a new generation and then reboot back if I run in to issues. To do the same in Arch I had a bunch of 'snapper plus manual steps' to accomplish the same.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by aidenn0 on Wednesday March 13, 2024 @04:47PM (#39697282)
I read that as Flox makes nix easier for newcomers, not that nix is easy for newcomers.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by jaxr on Wednesday March 13, 2024 @04:02PM (#39696678)
Exact same experience here. Been fiddling with nixos for quite a while, but never got comfortable with .nix or flakes. The base concepts keep escaping my mind, I have to revisit every time I have to configure something new and I just got tired. Issues are difficult to debug and you have to go through very specific commands and a hellish filesystem to understand what's going wrong. I love the concept, but I feel like it just gets too much in my way.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by SkyMarshal on Wednesday March 13, 2024 @04:55PM (#39697384)
> and a hellish filesystem

What do you mean by this part? The actual filesystem like Ext4/ZFS/etc? Or the removal of the unix Filesystem Heirarchy and replacement with a simulated/softlinked version in Nix/OS?

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by rapnie on Wednesday March 13, 2024 @04:49PM (#39697307)
Agreed on the experience, hard to onboard. I looked at devenv.sh as easier way to get going. Implemented all with Nix, less lock-in. Just found std [0] and that looks quite promising too.

[0] https://std.divnix.com/

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by tmountain on Wednesday March 13, 2024 @03:59PM (#39696641)
I love nix and have contributed quite a few packages to the nix repository, and I will vouch that it’s anything but easy. I have a background in Haskell which makes it more familiar, but even the syntax is counterintuitive to newcomers.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by xedrac on Wednesday March 13, 2024 @11:37PM (#39700365)
This is my experience too. At scale, I find Nix to be really slow, and the remote building infrastructure over VPN to be very flakey (see what I did there?). But it does solve some tough problems, and also introduces some new ones. Nix is incredibly useful, and extremely frustrating at the same time. Also, disk space...
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by phero_cnstrcts on Wednesday March 13, 2024 @07:44PM (#39698960)
I think once somebody solves the hellish configuration with another language that people can actually understand NixOs will take off. I mean, I hate js as much as everybody else, but I’d rather use that to configure nix than whatever that thing is that they use now.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by rjblackman on Wednesday March 13, 2024 @10:16PM (#39699961)
There is garn a typescript frontend to the nix language. https://github.com/garnix-io/garn/
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by stevefolta on Thursday March 14, 2024 @12:52AM (#39700709)
The language isn't the problem, it's the structure (if you can call it that) of Nixpkgs that makes it so difficult. And no, flakes are not the answer, they may solve composability but they create other problems.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by whateveracct on Wednesday March 13, 2024 @09:40PM (#39699780)
I used the repl from day 1 and it was so intuitive. No other alternative has a repl (besides guix I guess)