No description
Find a file
Charlotte Van Petegem 466e853e71 Small QoL changes
2020-02-28 15:53:47 +01:00
.git-crypt Initial commit 2020-02-10 17:27:13 +01:00
machines Switch to networkmanager 2020-02-28 15:52:37 +01:00
packages nixpkgs-fmt 2020-02-22 19:33:27 +01:00
profiles Small QoL changes 2020-02-28 15:53:47 +01:00
programs Small QoL changes 2020-02-28 15:53:47 +01:00
shells Use pmd for linting in java 2020-02-27 13:17:21 +01: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.