No description
.git-crypt | ||
machines | ||
packages | ||
profiles | ||
programs | ||
shells | ||
.gitattributes | ||
.gitignore | ||
README.md | ||
sample-configuration.nix |
NixOS config
Setting up a new dev environment
-
Create a new
*.nix
file in the shells directory that describes the environment (this is the hard part). -
Execute
lorri init
in the base directory of your project. This will create a.envrc
file andshell.nix
file. -
Edit the
shell.nix
file so that it containsimport /path/to/this/repo/shells/your-new-file.nix
. -
For shells that have a shellHook that exports environment containing computed directories (e.g. the git root or the current working directory), add
eval "$shellHook"
to your.envrc
. -
Execute
direnv allow
to load the.envrc
file which in turn useslorri
to load yourshell.nix
file.