NixServerConfig/module/forgejo.nix
2025-12-23 17:53:37 +01:00

18 lines
462 B
Nix

{ config,lib, ... }:
lib.mkIf config.module.forgejo.enable {
services.forgejo = {
enable = true;
database.type = "postgres";
# Enable support for Git Large File Storage
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.${config.module.domain}";
# You need to specify this to remove the port from URLs in the web UI.
ROOT_URL = "https://${srv.DOMAIN}/";
HTTP_PORT = 8222;
};
};
};
}