Commit 6dd4c5f7 authored by Bruno BELANYI's avatar Bruno BELANYI
Browse files

nixos/woodpecker-agents: use 'literalExample'

The next commit is going to add an option which takes a list of
packages. So the example must be converted to make it documentable.

This will also allow adding comments, to explain why some options are
used.
parent 7d246a28
Loading
Loading
Loading
Loading
+20 −18
Original line number Diff line number Diff line
@@ -106,7 +106,8 @@ in
      agents = lib.mkOption {
        default = { };
        type = lib.types.attrsOf agentModule;
        example = {
        example = lib.literalExpression ''
          {
            podman = {
              environment = {
                WOODPECKER_SERVER = "localhost:9000";
@@ -127,7 +128,8 @@ in

              environmentFile = [ "/run/secrets/woodpecker/agent-secret.txt" ];
            };
        };
          }
        '';
        description = lib.mdDoc "woodpecker-agents configurations";
      };
    };