Skip to content

Dev environments for numerous languages based on Nix flakes [maintainer=@lucperkins]

Notifications You must be signed in to change notification settings

steeef/dev-templates

 
 

Repository files navigation

Nix flake templates for easy dev environments

built with nix

To initialize (where ${ENV} is listed in the table below):

nix flake init --template github:the-nix-way/dev-templates#${ENV}

Here's an example (for the rust template):

# Initialize in the current project
nix flake init --template github:the-nix-way/dev-templates#rust

# Create a new project
nix flake new --template github:the-nix-way/dev-templates#rust ${NEW_PROJECT_DIRECTORY}

Note: All templates are pinned to the [22.11 release][release] of Nixpkgs.

How to use the templates

Once your preferred template has been initialized, you can use the provided shell in two ways:

  1. If you have [nix-direnv][nix-direnv] installed, you can initialize the environment by running direnv allow.
  2. If you don't have nix-direnv installed, you can run nix develop to open up the Nix-defined shell.

Code organization

All of the templates have only the root flake as a flake input. That root flake provides a common revision of [Nixpkgs] and [flake-utils][flake-utils] to all the templates.

About

Dev environments for numerous languages based on Nix flakes [maintainer=@lucperkins]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Nix 98.9%
  • Shell 1.1%