Files
stubbfelnix/services/gitea.nix
2025-12-09 19:26:54 +01:00

27 lines
684 B
Nix

{ config, pkgs, ... }:
{
services.nginx.virtualHosts."gitea.stubbe.rocks" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:3000";
};
users.users.gitea.shell = pkgs.zsh;
services.postgresql.enable = true;
services.gitea = {
enable = true;
repositoryRoot = "/var/lib/gitea/gitea-repositories";
lfs.enable = true;
database.type = "postgres";
settings.service.DISABLE_REGISTRATION=true;
settings.server.ROOT_URL="https://gitea.stubbe.rocks";
# package = pkgs.gitea.override rec {
# buildGoModule = args: pkgs.buildGoModule ( args // {
# tags = args.tags ++ [ "bindata" ];
# });
# };
};
}