No description
Find a file
2020-05-06 15:33:09 +02:00
.git-crypt Initial commit 2020-02-10 17:27:13 +01:00
configurations Fix missing trailing comma 2020-05-06 15:33:09 +02:00
machines nixpkgs-fmt update 2020-04-27 14:46:52 +02:00
packages Get rid of project-specific vim 2020-05-06 15:23:19 +02:00
profiles Distuingish between configurations and program modifications 2020-05-03 17:40:09 +02:00
programs Distuingish between configurations and program modifications 2020-05-03 17:40:09 +02:00
shells Get rid of project-specific vim 2020-05-06 15:23:19 +02:00
.gitattributes Initial commit 2020-02-10 17:27:13 +01:00
.gitignore Add oldtown 2020-02-20 14:29:40 +01:00
README.md Add gems that have binaries installed in a project to the PATH in that project 2020-02-23 15:40:45 +01:00
sample-configuration.nix Add oldtown 2020-02-20 14:29:40 +01:00

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 and shell.nix file.

  • Edit the shell.nix file so that it contains import /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 uses lorri to load your shell.nix file.