From 56e5b746604a961883ac783809ea69cd619b4641 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Mon, 4 Jul 2022 22:43:59 +0200 Subject: [PATCH] Disable keeping derivations --- nixos/configuration.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index b2fc1d24..fbb604f8 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -13,16 +13,17 @@ ]; # Enable flakes - # Keep nix-shell from grabage collection for direnv (keep-outputs + keep-derivations) nix = { package = pkgs.nixFlakes; extraOptions = '' experimental-features = nix-command flakes - - keep-outputs = true - keep-derivations = true ''; + # Keep nix-shell from grabage collection for direnv (keep-outputs + keep-derivations) + # NOTE: nix-direnv use nix or use flake should do this automatically + # keep-outputs = true + # keep-derivations = true + # Auto garbage-collect and optimize store gc.automatic = true; gc.options = "--delete-older-than 5d";