mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +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;
|
||||
|
||||
dbiFile = "/local/dbi";
|
||||
config.evaluator_max_memory_size = "2048M";
|
||||
};
|
||||
services.socklog = {
|
||||
enable = true;
|
||||
|
@ -66,6 +67,19 @@ makeSystem {
|
|||
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 [
|
||||
utillinux
|
||||
runit
|
||||
|
|
Loading…
Reference in a new issue