From 3fe6f7f3d9303cff23c77ec2388622ee86c3e5d5 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 9 Jan 2020 15:19:52 -0500 Subject: [PATCH] tools/direnv: update lorri setup instructions It is now available under services.lorri in 19.09. --- modules/tools/direnv/README.org | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/modules/tools/direnv/README.org b/modules/tools/direnv/README.org index 20530ae92..75e5e6ae4 100644 --- a/modules/tools/direnv/README.org +++ b/modules/tools/direnv/README.org @@ -67,27 +67,8 @@ Or ~nix-env -i direnv~ * Troubleshooting ** direnv + nix is slow Consider augmenting direnv with [[https://github.com/target/lorri][lorri]], which will cache nix builds and speed up -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: +direnv tremendously: #+BEGIN_SRC nix -nixpkgs.overlays = [ - (self: super: { - lorri = - let src = (super.fetchFromGitHub { - owner = "target"; - repo = "lorri"; - rev = "38eae3d487526ece9d1b8c9bb0d27fb45cf60816"; - sha256 = "11k9lxg9cv6dlxj4haydvw4dhcfyszwvx7jx9p24jadqsy9jmbj4"; - }); - in import src { inherit src; }; - }) -]; - -environment.systemPackages = [ pkgs.lorri ]; +services.lorri.enable = true; #+END_SRC - -Otherwise, follow [[https://github.com/target/lorri#installing-lorri][the instructions in lorri's README]] on how to install it -manually.