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 = {
utils = {
commons.enable = true;
commons.gc.enable = false;
lxc-standard.enable = true;
};
@ -30,10 +31,11 @@
'';
};
# For VSCode Remote Development
programs = {
# For VSCode Remote Development
nix-ld.enable = true;
starship = {
enable = true;
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 {
@ -37,7 +46,7 @@ in
"flakes"
];
gc = {
gc = lib.mkIf cfg.gc.enable {
# Auto delete old generations
automatic = true;
options = "--delete-older-than 2d";