diff --git a/nixos-apps/git.ewanick.com.nix b/nixos-apps/git.ewanick.com.nix index 554f1e4..f139f40 100644 --- a/nixos-apps/git.ewanick.com.nix +++ b/nixos-apps/git.ewanick.com.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: let baseUrl = "git.ewanick.com"; in { @@ -21,6 +21,23 @@ in }; }; + + # Shamelessly stolen from: + # + # Customizing Gitea which you can see more details at + # https://docs.gitea.io/en-us/customizing-gitea/. We're just using + # systemd-tmpfiles to make this work which is pretty convenient. + systemd.tmpfiles.rules = + let + # To be used similarly to $GITEA_CUSTOM variable. + giteaCustomDir = config.services.gitea.customDir; + in + [ + "L+ ${giteaCustomDir}/templates/home.tmpl - - - - ${./${baseUrl}/home.tmpl}" + # "L+ ${giteaCustomDir}/public/img/logo.svg - - - - ${./${baseUrl}/logo.svg}" + # "L+ ${giteaCustomDir}/public/img/logo.png - - - - ${./${baseUrl}/logo.png}" + ]; + # services.gitea-actions-runner.instances = { # "first-runner" = { # enable = true; diff --git a/nixos-apps/git.ewanick.com/home.tmpl b/nixos-apps/git.ewanick.com/home.tmpl new file mode 100644 index 0000000..5a913fb --- /dev/null +++ b/nixos-apps/git.ewanick.com/home.tmpl @@ -0,0 +1,28 @@ +{{template "base/head" .}} +
+
+
+
+

+ foodogsquared's personal forge +

+
+ +
+
+
+

+ A single-user instance for the purpose of showing my personal projects without a bunch of scattered projects I forgot to remove in my other code repositories (e.g., GitHub, GitLab). + Includes my personal projects (of course) and a bunch of mirrored repositories I'm mainly interested in archiving. +

+

+ Though this is a single-user instance, I'm also interested in collaboration in this instance. + Feel free to send some patches in email at $FOODOGSQUARED_GITEA_USER@$FOODOGSQUARED_DOMAIN and I'll consider it to be merged. + If the time comes, the need for email patches is reduced once ForgeFed protocol has been implemented. + Once that happens, that would be the preferred way of collaborating. +

+
+
+
+
+{{template "base/footer" .}}