Skip to content

Commit

Permalink
More data
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Feb 22, 2024
1 parent f6aadfb commit d90af86
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 8 deletions.
91 changes: 89 additions & 2 deletions data.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,79 @@
'';

resources = {
twitter = {
name = "Twitter account";
parts = [
{
type = "account";
website = "twitter.com";
name = "nixos_org";
}
];
owner = "marketing";
};
mastodon = {
name = "Mastodon account";
parts = [
{
type = "account";
website = "chaos.social";
name = "nixos_org";
}
];
owner = "marketing";
};
youtube = {
name = "YouTube account";
parts = [
{
type = "account";
website = "youtube.com";
name = "NixOS-Foundation";
}
];
owner = "marketing";
};
opencollective = {
name = "OpenCollective account";
parts = [
{
type = "account";
website = "opencollective.com";
name = "nixos";
}
];
owner = "foundation";
};
foundation = {
name = "Legal foundation";
parts = [
{
type = "legal";
website = "https://www.kvk.nl/";
registrationNumber = "63520583";
}
];
owner = "foundation";
};
github = {
name = "GitHub organisation";
parts = [
{
type = "account";
website = "github.com";
name = "NixOS";
}
{
type = "account";
website = "github.com";
name = "NixCon";
}
];
owner = "github";
};
infra = {
name = "Infrastructure";
parts = [
{
type = "GitHub";
Expand All @@ -38,6 +110,20 @@
};

teams = {
github = {
name = "GitHub organisation owners";
description = ''
This team is responsible for the GitHub organisation account.
'';
homepage = "https://github.com/NixOS";
matrixRoom = null;
leader = "zimbatm";
members = [
"zimbatm"
"edolstra"
# ...
];
};
infra = {
#level = "resource";
name = "Infra team";
Expand Down Expand Up @@ -67,8 +153,9 @@
'';
homepage = "https://github.com/NixOS/foundation";
matrixRoom = "#foundation:nixos.org";
leader = null;
members = [
"eelco"
"edolstra"
];
};

Expand Down Expand Up @@ -114,7 +201,7 @@
};

people = {
eelco = {
edolstra = {
name = "Eelco Dolstra";
github = "edolstra";
email = "[email protected]";
Expand Down
15 changes: 9 additions & 6 deletions schema.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ in

options.resources = lib.mkOption {
type = types.attrsOf (types.submodule {
options.name = lib.mkOption {
type = types.str;
};
options.parts = lib.mkOption {
type = types.listOf (types.attrsOf types.str);
};
Expand All @@ -39,10 +42,9 @@ in
};
options.leader = lib.mkOption {
type = types.nullOr types.str;
default = null;
};
options.matrixRoom = lib.mkOption {
type = types.str;
type = types.nullOr types.str;
};
options.homepage = lib.mkOption {
type = types.str;
Expand Down Expand Up @@ -74,10 +76,10 @@ in
## Resources
${
lib.concatStrings (lib.mapAttrsToList (name: resource: ''
### ${name}
lib.concatStrings (lib.mapAttrsToList (id: resource: ''
### ${resource.name}
Owner: [${resource.owner}](#${toMarkdownAnchor config.teams.${resource.owner}.name})
Owner: [${config.teams.${resource.owner}.name}](#${toMarkdownAnchor config.teams.${resource.owner}.name})
Parts:
${lib.concatMapStrings (part: ''
Expand All @@ -100,7 +102,8 @@ in
Homepage: ${team.homepage}
Matrix room: [${team.matrixRoom}](https://matrix.to/#/${team.matrixRoom})
${lib.optionalString (team.matrixRoom != null) ''
Matrix room: [${team.matrixRoom}](https://matrix.to/#/${team.matrixRoom})''}
Members:
${lib.concatMapStrings (member: ''
Expand Down

0 comments on commit d90af86

Please sign in to comment.