Disable GC on build machine. Every time rebuild everything!

This commit is contained in:
= 2025-02-04 21:24:30 +01:00
parent 642dfee7c7
commit e0a0f188b1
2 changed files with 13 additions and 2 deletions

View file

@ -17,6 +17,15 @@ in
};
};
gc = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
description = "Enable garbage collection";
};
};
};
config = lib.mkIf cfg.enable {
@ -37,7 +46,7 @@ in
"flakes"
];
gc = {
gc = lib.mkIf cfg.gc.enable {
# Auto delete old generations
automatic = true;
options = "--delete-older-than 2d";