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;
package = pkgsUnstable.forgejo;
repositoryRoot = "/forgejo/repos";
stateDir = "/var/lib/gitea";
appName = "Katzenschmiede";
user = "gitea";
group = "gitea";
database = {
type = "postgres";
name = "gitea";
user = "gitea";
};
settings = {
openid = {