From c30b534e49da2516caab37e6981022850f7a31c3 Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Tue, 25 Apr 2023 17:45:26 +0300 Subject: [PATCH] keep direnv outputs (no gc) --- profiles/nix/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profiles/nix/default.nix b/profiles/nix/default.nix index 981a532..60895e8 100644 --- a/profiles/nix/default.nix +++ b/profiles/nix/default.nix @@ -11,6 +11,10 @@ with config.deviceSpecific; { extraOptions = '' builders-use-substitutes = true experimental-features = nix-command flakes + + keep-outputs = true + keep-derivations = true + # Prevent Nix from fetching the registry every time flake-registry = ${inputs.flake-registry}/flake-registry.json '';