nixos-dotfiles/hosts/hypnos/services/forge.nix
Alex Stan 8b01e35da7 e
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
2024-02-29 01:53:07 +02:00

28 lines
650 B
Nix

inputs: { config, pkgs, ... }: {
services = {
/*
postgresql = {
ensureDatabases = [ config.services.gitea.user ];
ensureUsers = [
{
name = config.services.gitea.database.user;
ensurePermissions."DATABASE ${config.services.gitea.database.name}" = "ALL PRIVILEGES";
}
];
};
*/
gitea = {
enable = true;
package = pkgs.forgejo;
appName = "Graphite's Forge";
domain = "git.gra.phite.ro";
rootUrl = "https://git.gra.phite.ro";
settings = {
server = {
HTTP_PORT = 3004;
};
};
lfs.enable = true;
};
};
}