From bf4be1171800fb8a174b1bdc1d16e27a36bbb14f Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Wed, 8 Mar 2023 17:43:30 -0500 Subject: [PATCH] don't garbage collect direnv flakes --- modules/common/shell/direnv.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/common/shell/direnv.nix b/modules/common/shell/direnv.nix index 90d06ea..b5f5165 100644 --- a/modules/common/shell/direnv.nix +++ b/modules/common/shell/direnv.nix @@ -6,4 +6,10 @@ config = { whitelist = { prefix = [ config.dotfilesPath ]; }; }; }; + # Prevent garbage collection + nix.extraOptions = '' + keep-outputs = true + keep-derivations = true + ''; + }