summaryrefslogtreecommitdiff
path: root/modules/services/hercules-ci-agent
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /modules/services/hercules-ci-agent
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'modules/services/hercules-ci-agent')
-rw-r--r--modules/services/hercules-ci-agent/common.nix9
-rw-r--r--modules/services/hercules-ci-agent/default.nix4
-rw-r--r--modules/services/hercules-ci-agent/settings.nix19
3 files changed, 15 insertions, 17 deletions
diff --git a/modules/services/hercules-ci-agent/common.nix b/modules/services/hercules-ci-agent/common.nix
index 6401f6f..5a4b739 100644
--- a/modules/services/hercules-ci-agent/common.nix
+++ b/modules/services/hercules-ci-agent/common.nix
@@ -18,7 +18,6 @@ let
types
;
literalMD = lib.literalMD or (x: lib.literalDocBook "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
- mdDoc = lib.mdDoc or (x: "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
cfg = config.services.hercules-ci-agent;
@@ -37,7 +36,7 @@ in
enable = mkOption {
type = types.bool;
default = false;
- description = mdDoc ''
+ description = ''
Enable to run Hercules CI Agent as a system service.
[Hercules CI](https://hercules-ci.com) is a
@@ -47,7 +46,7 @@ in
'';
};
package = mkOption {
- description = mdDoc ''
+ description = ''
Package containing the bin/hercules-ci-agent executable.
'';
type = types.package;
@@ -55,7 +54,7 @@ in
defaultText = literalExpression "pkgs.hercules-ci-agent";
};
settings = mkOption {
- description = mdDoc ''
+ description = ''
These settings are written to the `agent.toml` file.
Not all settings are listed as options, can be set nonetheless.
@@ -75,7 +74,7 @@ in
type = types.path;
internal = true;
defaultText = literalMD "generated `hercules-ci-agent.toml`";
- description = mdDoc ''
+ description = ''
The fully assembled config file.
'';
};
diff --git a/modules/services/hercules-ci-agent/default.nix b/modules/services/hercules-ci-agent/default.nix
index 538e104..fc3d952 100644
--- a/modules/services/hercules-ci-agent/default.nix
+++ b/modules/services/hercules-ci-agent/default.nix
@@ -17,7 +17,7 @@ in
logFile = mkOption {
type = types.path;
default = "/var/log/hercules-ci-agent.log";
- description = lib.mdDoc "Stdout and sterr of hercules-ci-agent process.";
+ description = "Stdout and sterr of hercules-ci-agent process.";
};
};
@@ -25,7 +25,7 @@ in
launchd.daemons.hercules-ci-agent = {
script = "exec ${cfg.package}/bin/hercules-ci-agent --config ${cfg.tomlFile}";
- path = [ config.nix.package ];
+ path = [ config.nix.package config.environment.systemPath ];
environment = {
NIX_SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
};
diff --git a/modules/services/hercules-ci-agent/settings.nix b/modules/services/hercules-ci-agent/settings.nix
index 157861a..6389461 100644
--- a/modules/services/hercules-ci-agent/settings.nix
+++ b/modules/services/hercules-ci-agent/settings.nix
@@ -7,7 +7,6 @@ let
mkOption
;
literalMD = lib.literalMD or (x: lib.literalDocBook "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
- mdDoc = lib.mdDoc or (x: "Documentation not rendered. Please upgrade to a newer NixOS with markdown support.");
format = pkgs.formats.toml { };
@@ -15,7 +14,7 @@ let
freeformType = format.type;
options = {
apiBaseUrl = mkOption {
- description = mdDoc ''
+ description = ''
API base URL that the agent will connect to.
When using Hercules CI Enterprise, set this to the URL where your
@@ -27,12 +26,12 @@ let
baseDirectory = mkOption {
type = types.path;
default = "/var/lib/hercules-ci-agent";
- description = mdDoc ''
+ description = ''
State directory (secrets, work directory, etc) for agent
'';
};
concurrentTasks = mkOption {
- description = mdDoc ''
+ description = ''
Number of tasks to perform simultaneously.
A task is a single derivation build, an evaluation or an effect run.
@@ -56,7 +55,7 @@ let
'';
};
labels = mkOption {
- description = mdDoc ''
+ description = ''
A key-value map of user data.
This data will be available to organization members in the dashboard and API.
@@ -75,7 +74,7 @@ let
'';
};
workDirectory = mkOption {
- description = mdDoc ''
+ description = ''
The directory in which temporary subdirectories are created for task state. This includes sources for Nix evaluation.
'';
type = types.path;
@@ -83,7 +82,7 @@ let
defaultText = literalExpression ''baseDirectory + "/work"'';
};
staticSecretsDirectory = mkOption {
- description = mdDoc ''
+ description = ''
This is the default directory to look for statically configured secrets like `cluster-join-token.key`.
See also `clusterJoinTokenPath` and `binaryCachesPath` for fine-grained configuration.
@@ -93,7 +92,7 @@ let
defaultText = literalExpression ''baseDirectory + "/secrets"'';
};
clusterJoinTokenPath = mkOption {
- description = mdDoc ''
+ description = ''
Location of the cluster-join-token.key file.
You can retrieve the contents of the file when creating a new agent via
@@ -110,7 +109,7 @@ let
defaultText = literalExpression ''staticSecretsDirectory + "/cluster-join-token.key"'';
};
binaryCachesPath = mkOption {
- description = mdDoc ''
+ description = ''
Path to a JSON file containing binary cache secret keys.
As these values are confidential, they should not be in the store, but
@@ -124,7 +123,7 @@ let
defaultText = literalExpression ''staticSecretsDirectory + "/binary-caches.json"'';
};
secretsJsonPath = mkOption {
- description = mdDoc ''
+ description = ''
Path to a JSON file containing secrets for effects.
As these values are confidential, they should not be in the store, but