nix-dotfiles/nixos/forgejo.nix
2025-09-19 10:57:27 +02:00

25 lines
504 B
Nix

{
services.forgejo = {
enable = true;
database.type = "postgres";
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.bertof.net";
ROOT_URL = "https://git.bertof.net";
HTTP_PORT = 3000;
DISABLE_SSH = true;
};
session = {
COOKIE_SECURE = true;
};
service = {
# DISABLE_REGISTRATION = true;
};
actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "github";
};
};
};
}