From b64066caebf6c772e5ff1171807a2842dbc6ecca Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 13 May 2024 14:14:21 +0200 Subject: [PATCH] feat(forgejo): make runners Nice --- hosts/ami/forgejo-action-runner.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/ami/forgejo-action-runner.nix b/hosts/ami/forgejo-action-runner.nix index d647fdf..f79e201 100644 --- a/hosts/ami/forgejo-action-runner.nix +++ b/hosts/ami/forgejo-action-runner.nix @@ -27,6 +27,10 @@ in { }); }; + systemd.services = lib.genAttrs (builtins.genList (n: "gitea-runner-runner${builtins.toString n}") numRunners) (_: { + serviceConfig.Nice = 15; + }); + virtualisation.podman = { enable = true; autoPrune.enable = true;