diff options
author | sterni <sternenseemann@systemli.org> | 2022-11-27T14·00+0100 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-11-27T14·56+0000 |
commit | ed9aa0c32a5c14768f887b9c237ab80d7d6be254 (patch) | |
tree | a72abbfa86aed9d8a8c7aa2b6100601c6cc327fa /users/sterni/machines | |
parent | f1271d46bf67a7aa0d108491751b65e3bae26f6a (diff) |
feat(sterni/machines/edwin): categorize by project state in cgit r/5344
This should make it a bit clearer where not a lot is to be expected – either yet or anymore. Change-Id: I8139213814f2645f376ef2175aa2bc3721ee1e51 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7442 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'users/sterni/machines')
-rw-r--r-- | users/sterni/machines/edwin/http/code.sterni.lv.nix | 92 |
1 files changed, 57 insertions, 35 deletions
diff --git a/users/sterni/machines/edwin/http/code.sterni.lv.nix b/users/sterni/machines/edwin/http/code.sterni.lv.nix index 6c7e73cbc24e..8b842c9976d4 100644 --- a/users/sterni/machines/edwin/http/code.sterni.lv.nix +++ b/users/sterni/machines/edwin/http/code.sterni.lv.nix @@ -4,41 +4,56 @@ let virtualHost = "code.sterni.lv"; - repos = { - spacecookie = { - description = "gopher server (and library for Haskell)"; - }; - gopher-proxy = { - description = "Gopher over HTTP proxy"; - }; - emoji-generic = { - description = "generic emoji library for Haskell (wip)"; - }; - grav2ty = { - description = "“realistic” 2d space game"; - }; - likely-music = { - description = "experimental application for probabilistic music composition"; - }; - logbook = { - description = "file format for keeping a personal log"; - }; - sternenblog = { - description = "file based cgi blog software"; - }; - haskell-dot-time = { - description = "UTC-centric time library for haskell with dot time support"; - defaultBranch = "main"; - }; - buchstabensuppe = { - description = "toy font rendering for low pixelcount, high contrast displays"; - defaultBranch = "main"; - }; - }; + repoSections = [ + { + section = "active"; + repos = { + spacecookie = { + description = "gopher server (and library for Haskell)"; + }; + }; + } + { + section = "poc"; + repos = { + emoji-generic = { + description = "generic emoji library for Haskell"; + }; + grav2ty = { + description = "“realistic” 2d space game"; + }; + haskell-dot-time = { + description = "UTC-centric time library for haskell with dot time support"; + defaultBranch = "main"; + }; + buchstabensuppe = { + description = "toy font rendering for low pixelcount, high contrast displays"; + defaultBranch = "main"; + }; + }; + } + { + section = "archive"; + repos = { + gopher-proxy = { + description = "Gopher over HTTP proxy"; + }; + likely-music = { + description = "experimental application for probabilistic music composition"; + }; + logbook = { + description = "file format for keeping a personal log"; + }; + sternenblog = { + description = "file based cgi blog software"; + }; + }; + } + ]; cgitRepoEntry = name: repo: let - repoName = repos.name or name; + repoName = repo.name or name; path = repo.path or "${repoName}.git"; in lib.concatStringsSep "\n" ( @@ -75,8 +90,7 @@ let enable-blame=1 enable-commit-graph=1 - root-title=code - root-desc=sterni's git repositories + root-title=code.sterni.lv css=/cgit.css head-include=${cgitHead} @@ -87,7 +101,15 @@ let readme=:README.md readme=:readme.md - ${builtins.concatStringsSep "\n\n" (lib.mapAttrsToList cgitRepoEntry repos)} + section-sort=0 + ${ + lib.concatMapStringsSep "\n" (section: + '' + section=${section.section} + '' + + builtins.concatStringsSep "\n\n" (lib.mapAttrsToList cgitRepoEntry section.repos) + ) repoSections + } ''; in |