From 968921438ff06c50def183a8c5220548cf956efe Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Thu, 22 Feb 2024 17:23:06 +0100 Subject: [PATCH] Generate owner --- data.nix | 1 + schema.nix | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/data.nix b/data.nix index 2f40bd2..88eb146 100644 --- a/data.nix +++ b/data.nix @@ -17,6 +17,7 @@ }; teams = { "infra team" = { + name = "Infra team"; description = '' This is the infra team diff --git a/schema.nix b/schema.nix index 86bdefd..c3a4d4f 100644 --- a/schema.nix +++ b/schema.nix @@ -23,6 +23,9 @@ in options.teams = lib.mkOption { type = types.attrsOf (types.submodule { + options.name = lib.mkOption { + type = types.str; + }; options.description = lib.mkOption { type = types.str; }; @@ -66,6 +69,8 @@ in lib.concatStrings (lib.mapAttrsToList (name: resource: '' ### ${name} + Owner: [${resource.owner}](#${toMarkdownAnchor config.teams.${resource.owner}.name}) + Parts: ${lib.concatMapStrings (part: '' - ${lib.concatStringsSep "\n " (lib.mapAttrsToList (name: value: @@ -80,7 +85,7 @@ in ${ lib.concatStrings (lib.mapAttrsToList (name: team: '' - ### ${name} + ### ${team.name} ${team.description} Homepage: ${team.homepage}