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
1 changed files with 9 additions and 1 deletions

View File

@ -10,6 +10,7 @@
group = "gitea"; group = "gitea";
isSystemUser = true; isSystemUser = true;
uid = config.ids.uids.git; uid = config.ids.uids.git;
packages = with unstable-pkgs; [ gitea ];
}; };
services.gitea = { services.gitea = {
@ -29,7 +30,10 @@
}; };
database = { database = {
user = "git"; type = "postgres";
user = "gitea";
passwordFile = secrets.keys.postgres.gitea;
createDatabase = false;
}; };
settings = { 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 system.activationScripts.linkGiteaThemes.text = let
themes = pkgs.stdenv.mkDerivation { themes = pkgs.stdenv.mkDerivation {
pname = "gitea-themes"; pname = "gitea-themes";