mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 15:26:11 +01:00
31 lines
564 B
Nix
31 lines
564 B
Nix
{
|
|
users.users.remotebuild = {
|
|
isNormalUser = true;
|
|
createHome = false;
|
|
group = "remotebuild";
|
|
|
|
openssh.authorizedKeys.keyFiles = [../keys/remotebuild.pub];
|
|
};
|
|
|
|
users.groups.remotebuild = {};
|
|
|
|
nix = {
|
|
nrBuildUsers = 64;
|
|
settings = {
|
|
trusted-users = ["remotebuild"];
|
|
|
|
min-free = 10 * 1024 * 1024;
|
|
max-free = 200 * 1024 * 1024;
|
|
|
|
max-jobs = "auto";
|
|
cores = 0;
|
|
};
|
|
};
|
|
|
|
systemd.services.nix-daemon.serviceConfig = {
|
|
MemoryAccounting = true;
|
|
MemoryMax = "90%";
|
|
OOMScoreAdjust = 500;
|
|
};
|
|
}
|