Disable GC on build machine. Every time rebuild everything!
This commit is contained in:
parent
642dfee7c7
commit
e0a0f188b1
2 changed files with 13 additions and 2 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue