From 1aded254ae00dcf56b987a1acda4bacb2f9696e3 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 27 Feb 2022 12:36:12 +0100 Subject: [PATCH] Set Gitea tabstop --- configuration/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configuration/default.nix b/configuration/default.nix index efea59e..efa0152 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -378,6 +378,14 @@ in { systemd.services.gitea.serviceConfig.SystemCallArchitectures = lib.mkForce ""; systemd.services.gitea.serviceConfig.SystemCallFilter = lib.mkForce []; + # FIXME: This isn't really a secret... and should probably be a part of the Gitea module instead + deployment.secrets.gitea-header = { + source = builtins.toFile "header.tmpl" ""; + destination = "/var/lib/gitea/custom/templates/custom/header.tmpl"; + owner = { user = "git"; }; + action = [ "systemctl" "restart" "gitea.service" ]; + }; + # FIXME: Healthcheck for this! services.gitea = { enable = true;