cluster/services/hercules-ci-multi-agent: limit cores for Nix

This commit is contained in:
Max Headroom 2024-08-01 22:08:25 +02:00
parent c0038700e0
commit 29696add2f

View file

@ -48,5 +48,11 @@ in
}; };
}); });
nix.settings.cores = lib.pipe config.reflection.hardware.cpu.cores [
(builtins.mul 0.75)
builtins.floor
(lib.max 1)
];
users.groups.hercules-ci-agent.members = map (org: "hci-${org}") (lib.attrNames nodes); users.groups.hercules-ci-agent.members = map (org: "hci-${org}") (lib.attrNames nodes);
} }