News for hackers. Stuff that matters.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by notresidenter on Wednesday March 13, 2024 @01:36PM (#39694613)
You know you can just write `nix develop -c zsh` or `nix develop -c fish` or whatever, right?
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by tomberek on Wednesday March 13, 2024 @02:40PM (#39695594)
Yes, I'm also a Nix maintainer. `nix develop` does many other things, originally based on re-creating the build environment of a derivation. This means that it is not ideal for the case of development environments that must support more than just building.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by notresidenter on Wednesday March 13, 2024 @05:11PM (#39697578)
Interesting, thanks.
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by OJFord on Thursday March 14, 2024 @05:25AM (#39701843)
Isn't there nix shell for that, and nix-direnv to activate automatically?
Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by pxc on Friday March 15, 2024 @02:11PM (#39718871)
In some environments, not-building stuff you might want to do could include launching/supervising long-lived processes (services), connecting networked filesystems and mounting them somewhere appropriate, firing up VMs, etc. Some of this you can definitely do with direnv but if you want reproducibility with those aspects of your environment, building it on top of Nix seems like a more natural fit to me.

There are other tools that compete in this space right now (devenv.sh, flake.parts, devbox), and for simple use cases a basic direnv integration might be just fine. But the role Flox is aiming for here seems pretty clear imo.

Re:Show HN: Flox 1.0 – Open-source dev env as code with Nix by tripdout on Wednesday March 13, 2024 @03:46PM (#39696463)
Does this save environment variables and aliases defined in the Nix devshell?