host/istal: add cpu quota for docker

This commit is contained in:
Dmitriy Pleshevskiy 2025-03-17 18:22:27 +03:00
parent 0e7a405b61
commit 98efe1a2c9
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -8,6 +8,9 @@ in
age.secrets.forgejo-runner-token-codeberg-docker.file = ./forgejo-runner-token-codeberg-docker.age;
virtualisation.docker.enable = true;
systemd.services.docker.serviceConfig = {
CPUQuota = "50%"; # Ограничение для всего Docker демона?
};
services.gitea-actions-runner = {
package = pkgs.unstable.forgejo-runner;
@ -45,4 +48,5 @@ in
};
};
};
}