48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{
|
|
den.aspects.services.gitea = let port = 3002; in {
|
|
tunnel = { subdomain = "git"; inherit port; };
|
|
|
|
nixos = { host, config, ... }: {
|
|
# ponytail: cleans up the old custom home.tmpl link; delete this line after one deploy
|
|
systemd.tmpfiles.rules = [ "r '${config.services.gitea.customDir}/templates/home.tmpl'" ];
|
|
|
|
services.gitea = {
|
|
enable = true;
|
|
|
|
database.type = "mysql";
|
|
|
|
settings.service = {
|
|
DISABLE_REGISTRATION = false;
|
|
};
|
|
|
|
settings.server.HTTP_PORT = port;
|
|
settings.server.ROOT_URL = "https://git.${host.domain}/";
|
|
# logged-out homepage = owner profile activity tab (gitea's own heatmap + commit feed)
|
|
settings.server.LANDING_PAGE = "/${host.owner}?tab=activity";
|
|
|
|
/*
|
|
mirrors = {
|
|
admin = {
|
|
user = "admin";
|
|
email = "[email protected]";
|
|
};
|
|
|
|
repos = [
|
|
{ owner = "gmodena"; repo = "nix-flatpak"; service = "github"; }
|
|
{ owner = "FlameFlag"; repo = "nixcord"; service = "github"; }
|
|
{ owner = "jacob.eva"; repo = "opencom-lte"; source = "https://git.liberatedsystems.co.uk/jacob.eva/opencom-lte.git"; }
|
|
];
|
|
|
|
users = [
|
|
{ owner = "nix-community"; platform = "github"; }
|
|
{ owner = "catppuccin"; platform = "github"; }
|
|
{ owner = "picosh"; platform = "github"; }
|
|
{ owner = "vic"; platform = "github"; }
|
|
];
|
|
};
|
|
*/
|
|
};
|
|
};
|
|
};
|
|
}
|