1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Start working on gitea service

This commit is contained in:
RGBCube 2024-01-14 17:07:04 +03:00
parent 30d377e441
commit 52e80f9f0e
No known key found for this signature in database

27
hosts/cube/gitea.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, ulib, ... }: with ulib;
let
inherit (config.networking) domain;
fqdn = "git.${domain}";
in serverSystemConfiguration {
services.gitea = { # enabed {
lfs = enabled {};
database = {
socket = "/run/postgresql";
type = "postgres";
};
settings = {
APP_NAME = "RGBCube's Git Server";
server.DOMAIN = fqdn;
server.HTTP_ADDR = "::";
server.SSH_PORT = builtins.elemAt config.services.openssh.port 0;
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
};
};
}