From 39a2f0bdc1bbeab4dc00c1fe70c56c5f89811276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 31 Jul 2024 01:06:24 +0300 Subject: [PATCH] remote-builder: +maxJobs --- hosts/mtworx/configuration.nix | 1 + modules/services/remote-builder/default.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/hosts/mtworx/configuration.nix b/hosts/mtworx/configuration.nix index b45aca6..be6e90d 100644 --- a/hosts/mtworx/configuration.nix +++ b/hosts/mtworx/configuration.nix @@ -112,6 +112,7 @@ in inherit (host) system supportedFeatures; hostName = host.jakstIP; sshKey = "/etc/ssh/ssh_host_ed25519_key"; + maxJobs = 2; }; node_exporter = { diff --git a/modules/services/remote-builder/default.nix b/modules/services/remote-builder/default.nix index 98050d8..0831b64 100644 --- a/modules/services/remote-builder/default.nix +++ b/modules/services/remote-builder/default.nix @@ -18,6 +18,10 @@ hostName = lib.mkOption { type = str; }; sshKey = lib.mkOption { type = path; }; supportedFeatures = lib.mkOption { type = listOf str; }; + maxJobs = lib.mkOption { + type = int; + default = 1; + }; }; };