Hacker News new | ask | show | jobs
by srid 716 days ago
Direnv is very useful for switching between projects, we have an article: https://nixos.asia/en/direnv

But if you are comfortable with Nix you don't need Devbox per se, as you can get by with using Flakes. Here are some examples -- just `git clone` and run `direnv allow` (once), then you are put in the corresponding devShell

Haskell: https://github.com/srid/haskell-template

Rust: https://github.com/srid/rust-nix-template

home-manager: https://github.com/juspay/nix-dev-home

Dioxus: https://github.com/srid/dioxus-desktop-template

1 comments

Here's an open source "Uber" project, written largely in Haskell and heavily uses Nix/ direnv:

https://github.com/nammayatri/nammayatri

There's dedicated direnv configuration for backend and frontend development: checkout `.envrc.backend` and `.envrc.frontend` files. They both use `use flake`, specifying the appropriate devShell argument.