summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2022-06-30 09:56:28 -0500
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-06-30 15:26:00 +0000
commitdeb07479a00b75d8dd5187b272c4ca4b7a20ed80 (patch)
tree9b91fdb5fffc63519705a231d010ceb629d94e79
parentMerge pull request #176123 from NixOS/backport-176101-to-release-22.05 (diff)
downloadnixpkgs-origin/backport-179716-to-release-22.05.tar.gz
cachix-agent: expose verbose optionorigin/backport-179716-to-release-22.05
(cherry picked from commit 989565d67661918799c6190a43db60590600dd01)
-rw-r--r--nixos/modules/services/system/cachix-agent/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/system/cachix-agent/default.nix b/nixos/modules/services/system/cachix-agent/default.nix
index 30c0b1809679..3d2e9bc374ba 100644
--- a/nixos/modules/services/system/cachix-agent/default.nix
+++ b/nixos/modules/services/system/cachix-agent/default.nix
@@ -17,6 +17,12 @@ in {
defaultText = "config.networking.hostName";
};
+ verbose = mkOption {
+ type = types.bool;
+ description = "Enable verbose output";
+ default = false;
+ };
+
profile = mkOption {
type = types.nullOr types.str;
default = null;
@@ -54,7 +60,7 @@ in {
serviceConfig = {
Restart = "on-failure";
EnvironmentFile = cfg.credentialsFile;
- ExecStart = "${cfg.package}/bin/cachix deploy agent ${cfg.name} ${if cfg.profile != null then profile else ""}";
+ ExecStart = "${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} deploy agent ${cfg.name} ${if cfg.profile != null then profile else ""}";
};
};
};