tools/direnv: update lorri setup instructions
It is now available under services.lorri in 19.09.
This commit is contained in:
parent
44fb8ab594
commit
3fe6f7f3d9
1 changed files with 2 additions and 21 deletions
|
@ -67,27 +67,8 @@ Or ~nix-env -i direnv~
|
||||||
* Troubleshooting
|
* Troubleshooting
|
||||||
** direnv + nix is slow
|
** direnv + nix is slow
|
||||||
Consider augmenting direnv with [[https://github.com/target/lorri][lorri]], which will cache nix builds and speed up
|
Consider augmenting direnv with [[https://github.com/target/lorri][lorri]], which will cache nix builds and speed up
|
||||||
direnv tremendously.
|
direnv tremendously:
|
||||||
|
|
||||||
At the time of writing, the lorri package in nixpkgs simply emits an error
|
|
||||||
message, telling you to install it manually. You can get around this with:
|
|
||||||
|
|
||||||
#+BEGIN_SRC nix
|
#+BEGIN_SRC nix
|
||||||
nixpkgs.overlays = [
|
services.lorri.enable = true;
|
||||||
(self: super: {
|
|
||||||
lorri =
|
|
||||||
let src = (super.fetchFromGitHub {
|
|
||||||
owner = "target";
|
|
||||||
repo = "lorri";
|
|
||||||
rev = "38eae3d487526ece9d1b8c9bb0d27fb45cf60816";
|
|
||||||
sha256 = "11k9lxg9cv6dlxj4haydvw4dhcfyszwvx7jx9p24jadqsy9jmbj4";
|
|
||||||
});
|
|
||||||
in import src { inherit src; };
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.lorri ];
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Otherwise, follow [[https://github.com/target/lorri#installing-lorri][the instructions in lorri's README]] on how to install it
|
|
||||||
manually.
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue