From 0bbfafcafb3268a5fcdf54ad60271d6a82e5c98d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 5 Dec 2020 23:08:24 +0100 Subject: [PATCH] Make nix keep output of derivations with gc root --- modules/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/default.nix b/modules/default.nix index aa3fd56..2661111 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -76,6 +76,11 @@ # On-the-fly optimisation of nix store autoOptimiseStore = true; + # Keep output of derivations with gc root + extraOptions = '' + keep-outputs = true + keep-derivations = true + ''; # Make nix build in background less noticeable daemonIONiceLevel = 5; # 0-7