Git : Migrate from for-profit gitea to non-profit fork called forgejo.
This commit is contained in:
parent
2c87fb6659
commit
5c65a633e4
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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 // {
|
||||
|
|
Loading…
Reference in a new issue