From 596a9bc6b4102c00b5301393a56da7a871f79bfb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 18 Nov 2019 13:48:40 +0800 Subject: [PATCH] customize gitea homepage --- nixbld-etc-nixos/configuration.nix | 3 +++ nixbld-etc-nixos/gitea-home.tmpl | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 nixbld-etc-nixos/gitea-home.tmpl diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index c6fdcca..1db1d90 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -327,6 +327,9 @@ ACTION=="add", SUBSYSTEM=="tty", \ ALLOWED_TYPES = */* ''; }; + systemd.tmpfiles.rules = [ + "L+ '${config.services.gitea.stateDir}/custom/templates/home.tmpl' - - - - ${./gitea-home.tmpl}" + ]; services.mattermost = { enable = true; diff --git a/nixbld-etc-nixos/gitea-home.tmpl b/nixbld-etc-nixos/gitea-home.tmpl new file mode 100644 index 0000000..e70c4f4 --- /dev/null +++ b/nixbld-etc-nixos/gitea-home.tmpl @@ -0,0 +1,23 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ {{AppName}} +

+
+
+
+
+
+

+ Welcome! This Gitea instance is here to support projects related to M-Labs. You may want to browse the M-Labs organization where many projects are located. If you would like an account (we give them to anyone who wants to contribute on projects related to Sinara, ARTIQ, nMigen, etc.), simply write a short email to sb@m-***.hk stating the username you would like to have. +

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