summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2022-08-29 09:33:44 +0100
committerGitHub <noreply@github.com>2022-08-29 09:33:44 +0100
commite6dedb44deebc94f3dea35fdcc2fe1ce0b11b3ce (patch)
tree6d09174c6f4362fcf7bda864a3fab04c3f00db4f
parentef0e7f41cdf8fae1d2390c4df246c90a364ed8d9 (diff)
parentee4521db7fbbe3584306688ab0700b0b36f91426 (diff)
Merge pull request #503 from lockejan/fix/deprecation-warning
fix(gitlab-runner): deprecated literalExample
-rw-r--r--modules/services/gitlab-runner.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/services/gitlab-runner.nix b/modules/services/gitlab-runner.nix
index a8f5f0b..b7b50bb 100644
--- a/modules/services/gitlab-runner.nix
+++ b/modules/services/gitlab-runner.nix
@@ -136,7 +136,7 @@ in
checkInterval = mkOption {
type = types.int;
default = 0;
- example = literalExample "with lib; (length (attrNames config.services.gitlab-runner.services)) * 3";
+ example = literalExpression "with lib; (length (attrNames config.services.gitlab-runner.services)) * 3";
description = ''
Defines the interval length, in seconds, between new jobs check.
The default value is 3;
@@ -147,7 +147,7 @@ in
concurrent = mkOption {
type = types.int;
default = 1;
- example = literalExample "config.nix.maxJobs";
+ example = literalExpression "config.nix.maxJobs";
description = ''
Limits how many jobs globally can be run concurrently.
The most upper limit of jobs using all defined runners.
@@ -203,7 +203,7 @@ in
};
};
default = { };
- example = literalExample ''
+ example = literalExpression ''
{
listenAddress = "0.0.0.0:8093";
}
@@ -235,7 +235,7 @@ in
type = types.package;
default = pkgs.gitlab-runner;
defaultText = "pkgs.gitlab-runner";
- example = literalExample "pkgs.gitlab-runner_1_11";
+ example = literalExpression "pkgs.gitlab-runner_1_11";
description = "Gitlab Runner package to use.";
};
extraPackages = mkOption {
@@ -248,7 +248,7 @@ in
services = mkOption {
description = "GitLab Runner services.";
default = { };
- example = literalExample ''
+ example = literalExpression ''
{
# runner for building in docker via host's nix-daemon
# nix store will be readable in runner, might be insecure