migrate to forgejo the hacky way

This commit is contained in:
Schrottkatze 2024-01-25 10:05:55 +01:00
parent c02dfb80cf
commit 5c4642c6b5
Signed by: schrottkatze
GPG key ID: DFD0FD205943C14A

View file

@ -1,12 +1,27 @@
{ pkgs, pkgsUnstable, ... }:
{ {
services.gitea = { pkgs,
pkgsUnstable,
...
}: {
users.users.gitea = {
home = "/var/lib/gitea";
useDefaultShell = true;
group = "gitea";
isSystemUser = true;
};
users.groups.gitea = {};
services.forgejo = {
enable = true; enable = true;
package = pkgsUnstable.forgejo; package = pkgsUnstable.forgejo;
repositoryRoot = "/forgejo/repos"; repositoryRoot = "/forgejo/repos";
stateDir = "/var/lib/gitea";
appName = "Katzenschmiede"; appName = "Katzenschmiede";
user = "gitea";
group = "gitea";
database = { database = {
type = "postgres"; type = "postgres";
name = "gitea";
user = "gitea";
}; };
settings = { settings = {
openid = { openid = {
@ -42,7 +57,7 @@
}; };
deployment.keys = { deployment.keys = {
"noreply-mail-pw-plain" = { "noreply-mail-pw-plain" = {
keyCommand = [ "pass" "mailpws/plain/noreply" ]; keyCommand = ["pass" "mailpws/plain/noreply"];
destDir = "/var/lib/secrets"; destDir = "/var/lib/secrets";
permissions = "0604"; permissions = "0604";
}; };