From 4e8cfc0033e9653c2bb15d599a66335e9ebb0506 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 29 Aug 2022 08:19:44 +0200 Subject: [PATCH] feat: speed-up nix shells with nix-direnv --- configuration.nix | 6 +++++- home-manager/direnv.nix | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 267ad82..ebfea5c 100644 --- a/configuration.nix +++ b/configuration.nix @@ -107,7 +107,11 @@ nix = { package = pkgs.nixFlakes; - extraOptions = "experimental-features = nix-command flakes"; + extraOptions = '' + experimental-features = nix-command flakes + keep-outputs = true + keep-derivations = true + ''; autoOptimiseStore = true; gc = { diff --git a/home-manager/direnv.nix b/home-manager/direnv.nix index 5b56411..1061719 100644 --- a/home-manager/direnv.nix +++ b/home-manager/direnv.nix @@ -5,6 +5,7 @@ direnv = { enable = true; enableZshIntegration = true; + nix-direnv.enable = true; }; }; }