Add dirty hack to fix gitea temporarily

This commit is contained in:
Oystein Kristoffer Tveit 2022-11-03 23:16:18 +01:00
parent 4647c562ab
commit 5d78680e82
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146

View File

@ -10,6 +10,7 @@
group = "gitea";
isSystemUser = true;
uid = config.ids.uids.git;
packages = with unstable-pkgs; [ gitea ];
};
services.gitea = {
@ -29,7 +30,10 @@
};
database = {
user = "git";
type = "postgres";
user = "gitea";
passwordFile = secrets.keys.postgres.gitea;
createDatabase = false;
};
settings = {
@ -85,6 +89,10 @@
};
};
# 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";