Live data from Hacker News

Show HN: Flox 1.0 – Open-source dev env as code with Nix

github.com

61–70 of 201 posts

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#61
post #57

I wonder if something like this could be used instead of conda or pixi to manage Python packages, the used-version of Python, the Python virtualenv, etc.

It can, but I wouldn't recommend it unless you have native dependencies that are just a pain to install. You'll loose Windows compatibility, may have to package some Python packages yourself, have a learning curve for everyone in the Python ecosystem and gain... what exactly?

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#62
Reproducible development environment, I'm very enthusiastic about it and have been using development containers for years now, at work, they do a great job too. About a year ago, I started to hear about Nix. I was super excited at first, the promise is amazing, but the onboarding process has been awful for me. I have a defined development environment I want to achieve, but it seems I always miss something in the way it should be approached. I'm glad to see some new tooling helping to improve the overall experience. Anyway, I keep trying and hope it will click at some point. I'm wondering, at which moment it did for you?

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#63
Hello Ron, congratulations to everyone on the team!

It looks like you've pared back some of the more expert configurability in order to clean up the UX. I really like the environment focus and composability, which is a real pain point in the Nix world.

Do you have a plan to add back any of that configurability over time? I realize I am probably not your target audience, at least as a free user, and perhaps your enterprise offering will answer all of my questions.

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#64
There are several tools in this space now- nix is maturing and people are realizing how useful nix can be for dev envs.

  * [devenv](devenv.sh) - I am using it and loving it, but worried that the development is not moving forward
  * [devbox](https://www.jetpack.io/devbox)
  * [daytona](https://www.daytona.io/docs/usage/workspaces/) 
  * [devshell](https://github.com/numtide/devshell)
  * [bob.build](bob.build) more focused on the build
I am glad that flox is pushing its development forward. Does flox have a way to run services? With `devenv` I run my database with `devenv up`.

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#65
post #12

Earlier quoted context omitted.

Put another way, I would think that individual engineers would be better off learning the underlying tech and the tools provided that go with them. I think it's very possible that Flox (or devenv or...) reaches EOL, or ceases to track nixpkgs appropriately, or any of the other ways that software rots. Where nix develop is going to last as long as Nix Flakes do, and there's incentive to provide a migration path to wha…

Does a python developer NEED to know how C works to write automation scripts that work reasonably well? This logic is silly.

They don't, but I have respect and sympathy for developers who prefer to dig deeper with learning their tools, and how that might make them tend to prefer stacks with fewer layers sometimes. I think it's a valid concern, especially for hobbyist and experimental/autodidactic use cases. In a corporate environment or within a team, people typically specialize and defer to each other in various areas, so maybe it matters less there.

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#67

There are several tools in this space now- nix is maturing and people are realizing how useful nix can be for dev envs. * [devenv](devenv.sh) - I am using it and loving it, but worried that the development is not moving forward * [devbox](https://www.jetpack.io/devbox) * [daytona](https://www.daytona.io/docs/usage/workspaces/) * [devshell](https://github.com/numtide/devshell) * [bob.build](bob.build) more focused on…

Devbox can also run services too. Both products use an awesome process runner called process-compose (https://github.com/f1bonacc1/process-compose/) which is worth checking out (it's even built with nix!)

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#68
post #39
post #16

Earlier 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…

I once needed to install a specific version of a package on my nix environment. It took me 2 hours to find how...

After a few months, I needed to do that again, but now the project supported devenv.sh. It took me 5 min.

That experience also repeated for other kinds of tasks, for example: start postgres (or redis or elasticsearch or cassandra...), install packages only if the host system is `darwin`, install old versions of packages that aren't on the registry anymore, etc...

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#69
post #39

Earlier quoted context omitted.

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…

I once needed to install a specific version of a package on my nix environment. It took me 2 hours to find how... After a few months, I needed to do that again, but now the project supported devenv.sh. It took me 5 min. That experience also repeated for other kinds of tasks, for example: start postgres (or redis or elasticsearch or cassandra...), install packages only if the host system is `darwin`, install old versi…

How does devenv help with using an specific version of a package in an easier way than nix (with flakes)? Does it have any kind of simpler syntax for overlays? Or you are referring to pinning a nixpkgs version?

I'm not really against tools that make it easier to use nix, I think devenv is a nice tool and I like that it doesn't hide nix, the same way I love home-manager and use it all the time.

Re: Show HN: Flox 1.0 – Open-source dev env as code with Nix

#70
The more powerful version search that Flox (and other dev env solutions built on Nix) have compared to the regular Nix search is super useful.

Glad that all these different companies are exploring more ways to use Nix and hopefully improvements can be shared throughout the ecosystem.

Post reply on HN