tsuki: reduce amount of gitea backups, and move state dir
This commit is contained in:
parent
eaa2e9bd1d
commit
ef4f5d4dd4
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue