nixos/system/services/forgejo.nix

39 lines
1,007 B
Nix
Raw Normal View History

2024-07-30 15:06:34 +01:00
{ config, pkgs, ... }:
2024-07-10 06:04:15 +01:00
{
2024-07-30 15:06:34 +01:00
imports = [ ./caddy.nix ];
2024-03-31 18:06:01 +01:00
services = {
forgejo = {
enable = true;
settings = {
server = {
ROOT_URL = "https://git.xenia.me.uk";
DOMAIN = "git.xenia.me.uk";
HTTP_ADDR = "127.0.0.1";
HTTP_PORT = 3100;
DISABLE_SSH = true;
};
2024-07-30 15:06:34 +01:00
ui = {
DEFAULT_THEME = "forgejo-auto";
};
admin = {
DISABLE_REGULAR_ORG_CREATION = true;
};
service = {
DISABLE_REGISTRATION = true;
};
2024-03-31 18:06:01 +01:00
};
};
# gitea-actions-runner = {
# package = pkgs.forgejo-runner;
# instances.default = {
# enable = true;
# name = "monolith";
# url = config.services.forgejo.settings.server.ROOT_URL;
# tokenFile = /var/lib/forgejo/runner_registration_token;
# labels = ["native:host"];
# };
# };
2024-03-31 18:06:01 +01:00
caddy.virtualHosts."git.xenia.me.uk".extraConfig = "reverse_proxy http://localhost:3100";
};
}