Skip to content
/ nix-flake-template Public template

A template to get you started with a nix shell created by nix flake and direnv.

Notifications You must be signed in to change notification settings

podocarp/nix-flake-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nix flake template repository

This is a minimal config to get you started with modern nix shell. The shell is defined by a flake and entered with direnv.

How to use

This is dead simple if you have direnv installed. Simply clone this repo and cd into the directory. You might need to run direnv allow, after which everytime you enter the directory you will enter your nix shell.

If you don't have direnv, you can alternatively run nix develop to enter the shell.

To change the packages available in your shell, simply add them to the buildInputs section in flake.nix. Seach for packages here. You can also expose environment variables by adding entries to mkShell (this is behaviour inherited from mkDerivation).

For more info take a look at the nix docs.

About

A template to get you started with a nix shell created by nix flake and direnv.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published