diff options
author | Domen Kožar <domen@dev.si> | 2022-06-30 10:20:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 10:20:58 -0500 |
commit | be443e9adb203d5cf84b51710075a9aa57fa86fe (patch) | |
tree | 78fa8d95869c8d271e44fee664406a6cbbeeb2de | |
parent | 65511848ba66047151a792474895440ce78e4513 (diff) | |
parent | 989565d67661918799c6190a43db60590600dd01 (diff) | |
download | nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.tar nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.tar.gz nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.tar.bz2 nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.tar.lz nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.tar.xz nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.tar.zst nixpkgs-be443e9adb203d5cf84b51710075a9aa57fa86fe.zip |
Merge pull request #179716 from domenkozar/cachix-agent-verbose
cachix-agent: expose verbose option
-rw-r--r-- | nixos/modules/services/system/cachix-agent/default.nix | 8 |
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 30c0b180967..3d2e9bc374b 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 ""}"; }; }; }; |