From 798a4967096b5e1cb0b4275d4e59cbad85688086 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 9 Apr 2021 16:53:05 +0200 Subject: [PATCH] gitea: use custom home template --- services/default.nix | 2 +- services/{gitea.nix => gitea/default.nix} | 2 ++ services/gitea/templates/home.tmpl | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) rename services/{gitea.nix => gitea/default.nix} (94%) create mode 100644 services/gitea/templates/home.tmpl diff --git a/services/default.nix b/services/default.nix index 2777adf..93fe1fe 100644 --- a/services/default.nix +++ b/services/default.nix @@ -5,7 +5,7 @@ ./bitwarden_rs.nix ./borg-backup.nix ./fail2ban.nix - ./gitea.nix + ./gitea ./jellyfin.nix ./lohr.nix ./matrix.nix diff --git a/services/gitea.nix b/services/gitea/default.nix similarity index 94% rename from services/gitea.nix rename to services/gitea/default.nix index 0f47cba..57ea41a 100644 --- a/services/gitea.nix +++ b/services/gitea/default.nix @@ -95,5 +95,7 @@ in { }; }; }; + + systemd.services.gitea.preStart = "${pkgs.coreutils}/bin/ln -sfT ${./templates} ${config.services.gitea.stateDir}/custom/templates"; }; } diff --git a/services/gitea/templates/home.tmpl b/services/gitea/templates/home.tmpl new file mode 100644 index 0000000..bff47d2 --- /dev/null +++ b/services/gitea/templates/home.tmpl @@ -0,0 +1,17 @@ +{{template "base/head" .}} +
+
+
+
+ +
+
+

+ {{AppName}} +

+

alarsyo's personal projects are hosted here

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