From 3d51d5839c6a24bc3f0ee8803e825763fc89b5c1 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 17 Jun 2023 15:27:25 +0200 Subject: use https://github.com/nix-community/nix-direnv - lorri looks not that well maintained --- common.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/common.nix b/common.nix index 0e477f9..153ca1b 100644 --- a/common.nix +++ b/common.nix @@ -176,8 +176,11 @@ in cores = 4; }; - # we want some experimental features like nix search - extraOptions = ''experimental-features = nix-command flakes''; + # https://github.com/nix-community/nix-direnv + extraOptions = '' + keep-outputs = true + keep-derivations = true + ''; }; # avoid suspend ever to be triggered @@ -436,11 +439,9 @@ in xorg.xhost ]; - # enable direnv integration + # https://github.com/nix-community/nix-direnv programs.direnv.enable = true; - - # nix-shell on drugs - services.lorri.enable = true; + programs.direnv.nix-direnv.enable = true; # generate the shell config programs.zsh = { -- cgit v1.2.3