lol

Merge pull request #179716 from domenkozar/cachix-agent-verbose

cachix-agent: expose verbose option

authored by

Domen Kožar and committed by
GitHub
be443e9a 65511848

+7 -1
+7 -1
nixos/modules/services/system/cachix-agent/default.nix
··· 17 17 defaultText = "config.networking.hostName"; 18 18 }; 19 19 20 + verbose = mkOption { 21 + type = types.bool; 22 + description = "Enable verbose output"; 23 + default = false; 24 + }; 25 + 20 26 profile = mkOption { 21 27 type = types.nullOr types.str; 22 28 default = null; ··· 54 60 serviceConfig = { 55 61 Restart = "on-failure"; 56 62 EnvironmentFile = cfg.credentialsFile; 57 - ExecStart = "${cfg.package}/bin/cachix deploy agent ${cfg.name} ${if cfg.profile != null then profile else ""}"; 63 + ExecStart = "${cfg.package}/bin/cachix ${lib.optionalString cfg.verbose "--verbose"} deploy agent ${cfg.name} ${if cfg.profile != null then profile else ""}"; 58 64 }; 59 65 }; 60 66 };