Disable keeping derivations
This commit is contained in:
@ -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";
|
||||||
|
Reference in New Issue
Block a user