Show HN: Flox 1.0 – Open-source dev env as code with Nix
131–140 of 201 posts
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#132The 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…
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#133Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#134Earlier quoted context omitted.
I just gave that link to someone else who commented here. :) You are right, but at the end of the day, I prefer to write my own installation scripts or "features" than dealing with Nix. Maybe some day I'll go back to a nix tool to help writing a complex devcontainer.json with everything I need.
https://news.ycombinator.com/item?id=39697259 "But there are hoards more that think you should just write hacky shell scripts and bugs don't really matter anyway."
Thanks for the condescending comment.
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#135How does nix deal with different CPU architectures? If I have some developers using an ARM based macbook, and some devs on an x86_64 based machine, is it easy to support both without much maintenance?
Those packages are built from the same sources with same (or almost the same) configuration options and for all intents and purposes should be nearly identical.
So while you use your devenv, it will download and use the right packages for your architecture, and if something is missing on the cache server it will build it locally.
Now as ARM Mac's are as popular as the intel ones, people are making sure that the packages build on both.
[1] nix generates a hash which is based on the package source code, compile options, architecture etc. and uses that for the lookup.
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#136Earlier quoted context omitted.
I just want clean, repeatable environments for different projects. I’ve tried getting into Nix a few times but I always get overwhelmed by all the different things it is/does. This looks 100x simpler to me.
Hmm... I understand that if you don't know anything about the language or what is a flake, it may be a little bit difficult. But really, adding a new package to your environment once you have a flake setup, which a minimal one is trivial, is just adding the name of the package. Here you have a flake.nix example from leptos. https://github.com/leptos-rs/leptos/blob/main/flake.nix You want a new dependency? Add it to b…
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#137What made you choose the GPL license for this?
I normally would actually welcome GPL, because it allows to keep project being open source.
Though looks like project also comes with CLA where anyone who contributes surrenders their copyright to FloxDev, Inc.
What this means, is that no one can fork it and make from it a commercial product. Many would say this is great as it can keep the project open source, except the CLA gives FloxDev, Inc. option to change license at any moment to whatever they want, including making the project fully closed source.
I don't think such project can be called open source. It feels like a Trojan horse to fool developers (kind of what Hashicorp did). I mean it is the right, but if you're contributing to it, you're not contributing to Open Source project but volunteering free work to another company.
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#138Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#139Last I tried to use Nix there was lots of confusion over flakes - some tutorials suggested using them and others saying they are still in development. Has the situation improved?
There are certain scenarios where the performance can be problematic, but there are workarounds and permanent solutions are being worked on. Nevertheless, using flakes extensively at home and work.
Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix
#140What I desperately want is the generation of a lock file so that environment installs are cryptographically guaranteed to be repeatable byte-for-byte. I recognize that this means either checksums every platform supported, but I’ve been startled that none of the options I’ve found seem to have the capacity for this.
Given so, this means many tools based on nix provide this too, though it's not as easily surfaced.