Turn automatic nix garbage collection off in microvm
This commit is contained in:
parent
9f659067db
commit
ae1e318a9a
|
@ -397,7 +397,7 @@ in
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = lib.mkDefault true;
|
||||||
dates = "06:00";
|
dates = "06:00";
|
||||||
options = "--delete-older-than 21d";
|
options = "--delete-older-than 21d";
|
||||||
randomizedDelaySec = "6h";
|
randomizedDelaySec = "6h";
|
||||||
|
|
|
@ -167,5 +167,8 @@ in
|
||||||
|
|
||||||
# autoupdates do not make sense inside MicroVMs with read-only /nix/store
|
# autoupdates do not make sense inside MicroVMs with read-only /nix/store
|
||||||
c3d2.autoUpdate = false;
|
c3d2.autoUpdate = false;
|
||||||
|
|
||||||
|
# nix store is mounted read only
|
||||||
|
nix.gc.automatic = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user