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

View file

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