feat: Migrate from gitea to forgejo

This commit is contained in:
Alexander Kobjolke 2024-03-25 00:29:52 +01:00
parent bd7e5f5d14
commit 749dbb765d
2 changed files with 16 additions and 9 deletions

View file

@ -6,7 +6,7 @@
repositories = { repositories = {
"org" = { "org" = {
path = "${config.home.homeDirectory}/org"; path = "${config.home.homeDirectory}/org";
uri = "git+ssh://gitea@git.failco.de:jakalx/org.git"; uri = "git+ssh://git@git.failco.de:jakalx/org.git";
}; };
}; };
}; };

View file

@ -215,13 +215,13 @@ in {
''; '';
}; };
# gitea # forgejo - git web frontend
"${config.services.gitea.settings.server.DOMAIN}" = { "${config.services.forgejo.settings.server.DOMAIN}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${ proxyPass = "http://127.0.0.1:${
toString config.services.gitea.settings.server.HTTP_PORT toString config.services.forgejo.settings.server.HTTP_PORT
}/"; }/";
proxyWebsockets = true; proxyWebsockets = true;
}; };
@ -252,8 +252,16 @@ in {
}; };
}; };
services.gitea = { users.users.git = {
home = config.services.forgejo.stateDir;
useDefaultShell = true;
group = config.services.forgejo.group;
isSystemUser = true;
};
services.forgejo = {
enable = true; enable = true;
user = "git";
database.type = "sqlite3"; database.type = "sqlite3";
lfs.enable = true; lfs.enable = true;
@ -269,10 +277,9 @@ in {
mailer = { mailer = {
ENABLED = true; ENABLED = true;
MAILER_TYPE = "smtp"; PROTOCOL = "smtp";
FROM = "git@failco.de"; SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
HOST = "thrall.failco.de:25"; FROM = "noreply@failco.de";
IS_TLS_ENABLED = false;
}; };
}; };
}; };