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 + ''; + }