Git : Migrate from for-profit gitea to non-profit fork called forgejo.

This commit is contained in:
Dmitry Voronin 2024-08-20 18:20:10 +03:00
parent 2c87fb6659
commit 5c65a633e4
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
2 changed files with 12 additions and 12 deletions

View file

@ -30,18 +30,18 @@ in {
containers.git = container.mkContainer cfg { containers.git = container.mkContainer cfg {
bindMounts = { bindMounts = {
"/var/lib/gitea" = { "/var/lib/forgejo" = {
hostPath = "${cfg.storage}/data"; hostPath = "${cfg.storage}/data";
isReadOnly = false; isReadOnly = false;
}; };
}; };
config = { ... }: container.mkContainerConfig cfg { config = { ... }: container.mkContainerConfig cfg {
environment.systemPackages = with pkgs; [ gitea ]; environment.systemPackages = with pkgs; [ forgejo ];
services.gitea = { services.forgejo = {
enable = true; enable = true;
stateDir = "/var/lib/gitea"; stateDir = "/var/lib/forgejo";
database = let database = let
postgre = config.container.module.postgres; postgre = config.container.module.postgres;
@ -49,8 +49,8 @@ in {
type = "postgres"; type = "postgres";
host = postgre.address; host = postgre.address;
port = postgre.port; port = postgre.port;
user = "gitea"; user = "forgejo";
name = "gitea"; name = "forgejo";
createDatabase = false; createDatabase = false;
}; };

View file

@ -36,12 +36,12 @@ in {
services.postgresql = let services.postgresql = let
# Populate with services here. # Populate with services here.
configurations = with config.container.module; { configurations = with config.container.module; {
gitea = git; forgejo = git;
invidious = yt;
nextcloud = cloud; nextcloud = cloud;
privatebin = paste;
onlyoffice = office; onlyoffice = office;
paperless = paper; paperless = paper;
invidious = yt; privatebin = paste;
}; };
access = configurations // { access = configurations // {