cluster/services/hercules-ci-multi-agent: limit cores for Nix
This commit is contained in:
parent
c0038700e0
commit
29696add2f
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue