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 {
|
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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 // {
|
||||||
|
|
Loading…
Reference in a new issue