1

Disable keeping derivations

This commit is contained in:
2022-07-04 22:43:59 +02:00
parent 65c84d04ba
commit 56e5b74660

View File

@ -13,16 +13,17 @@
]; ];
# Enable flakes # Enable flakes
# Keep nix-shell from grabage collection for direnv (keep-outputs + keep-derivations)
nix = { nix = {
package = pkgs.nixFlakes; package = pkgs.nixFlakes;
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes 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 # Auto garbage-collect and optimize store
gc.automatic = true; gc.automatic = true;
gc.options = "--delete-older-than 5d"; gc.options = "--delete-older-than 5d";