10 ms·
Direnv is very useful for switching between projects, we have an article: https://nixos.asia/en/direnv https://nixos.asia/en/direnv But if you are comfortable
by srid 2y ago
Direnv is very useful for switching between projects, we have an article:
https://nixos.asia/en/direnv 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 https://github.com/srid/haskell-template
Rust: https://github.com/srid/rust-nix-template https://github.com/srid/rust-nix-template
home-manager: https://github.com/juspay/nix-dev-home https://github.com/juspay/nix-dev-home
Dioxus: https://github.com/srid/dioxus-desktop-template https://github.com/srid/dioxus-desktop-template
- srid 2y agoHere's an open source "Uber" project, written largely in Haskell and heavily uses Nix/ direnv: https://github.com/nammayatri/nammayatri 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.