This repository contains nix flake devshells templates for different languages.
- nix package manager
- direnv (optional)
You can list the available templates through
$ nix flake show github:aleixrm/nix-devshellsFor using them, enter your project directory and execute
$ nix flake init -t github:aleixrm/nix-devshells#<template-name>e.g.
$ nix flake init -t github:aleixrm/nix-devshells#rustprobably you will need to allow the .envrc file through direnv:
$ direnv allowNow you should have a nix devshell with all the language dependencies loaded.
NOTE: If you don't want to use direnv, you can execute the nix devshell directly with this command:
$ nix develop