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

@ -9,6 +9,7 @@
my = { my = {
utils = { utils = {
commons.enable = true; commons.enable = true;
commons.gc.enable = false;
lxc-standard.enable = true; lxc-standard.enable = true;
}; };
@ -30,10 +31,11 @@
''; '';
}; };
# For VSCode Remote Development
programs = { programs = {
# For VSCode Remote Development
nix-ld.enable = true; nix-ld.enable = true;
starship = { starship = {
enable = true; enable = true;
presets = [ presets = [

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 { config = lib.mkIf cfg.enable {
@ -37,7 +46,7 @@ in
"flakes" "flakes"
]; ];
gc = { gc = lib.mkIf cfg.gc.enable {
# Auto delete old generations # Auto delete old generations
automatic = true; automatic = true;
options = "--delete-older-than 2d"; options = "--delete-older-than 2d";