mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 09:36:14 +01:00
Limit Hydra evaluator memory usage and collect garbage
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
801b59a8cf
commit
1b3d44bd76
|
@ -46,6 +46,7 @@ makeSystem {
|
||||||
minimumDiskFreeEvaluator = 100;
|
minimumDiskFreeEvaluator = 100;
|
||||||
|
|
||||||
dbiFile = "/local/dbi";
|
dbiFile = "/local/dbi";
|
||||||
|
config.evaluator_max_memory_size = "2048M";
|
||||||
};
|
};
|
||||||
services.socklog = {
|
services.socklog = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -66,6 +67,19 @@ makeSystem {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.crond.crontabs.autogc = {
|
||||||
|
jobs =
|
||||||
|
let
|
||||||
|
storegc = pkgs.writeShellScript "storegc"
|
||||||
|
''
|
||||||
|
nix-collect-garbage -d
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"0 4 * * * ${storegc}"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
init.services.nix-daemon.environment.PATH = with pkgs; lib.makeBinPath [
|
init.services.nix-daemon.environment.PATH = with pkgs; lib.makeBinPath [
|
||||||
utillinux
|
utillinux
|
||||||
runit
|
runit
|
||||||
|
|
Loading…
Reference in a new issue