tsuki: reduce amount of gitea backups, and move state dir

This commit is contained in:
Oystein Kristoffer Tveit 2023-01-16 16:11:28 +01:00
parent eaa2e9bd1d
commit ef4f5d4dd4
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 6 additions and 7 deletions

View File

@ -16,17 +16,17 @@
services.gitea = {
enable = true;
user = "git";
cookieSecure = true;
rootUrl = "https://git.nani.wtf/";
domain = "git.nani.wtf";
httpPort = secrets.ports.gitea;
disableRegistration = true;
package = unstable-pkgs.gitea;
stateDir = "${config.machineVars.dataDrives.default}/var/gitea";
dump = {
enable = true;
interval = "hourly";
interval = "weekly";
};
database = {
@ -42,6 +42,9 @@
LANDING_PAGE = "/explore/repos";
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
ui = {
DEFAULT_THEME = "monokai";
THEMES = lib.strings.concatStringsSep "," [
@ -89,10 +92,6 @@
};
};
# TODO: remove when updating to nixpkgs 22.11
systemd.services.gitea.serviceConfig.SystemCallFilter =
lib.mkForce "~@clock @cpu-emulation @debug @keyring @memlock @module @mount @obsolete @raw-io @reboot @setuid @swap";
system.activationScripts.linkGiteaThemes.text = let
themes = pkgs.stdenv.mkDerivation {
pname = "gitea-themes";