Files
spacestation/capytal/forgejo/default.nix

70 lines
1.7 KiB
Nix
Raw Normal View History

2024-09-18 09:58:09 -03:00
{
config,
pkgs-unstable,
...
2025-04-04 20:56:49 -03:00
}: let
2024-09-18 09:58:09 -03:00
secrets = config.spacestation-secrets.lesser;
forgejoCfg = secrets.capytal.services.forgejo;
2024-09-18 09:58:09 -03:00
in {
imports = [
../../modules/forgejo
./customization.nix
2024-09-18 09:58:09 -03:00
];
services.forgejo = {
enable = true;
package = pkgs-unstable.forgejo;
actions = {
enable = true;
token = forgejoCfg.actions.token;
url = "https://forge.capytal.company";
labels = forgejoCfg.actions.labels;
2024-09-18 09:58:09 -03:00
};
2024-09-18 10:12:35 -03:00
users = {
enable = true;
users = {
user1 = {
name = /. + config.sops.secrets."forgejo/user1/name".path;
password = /. + config.sops.secrets."forgejo/user1/password".path;
email = /. + config.sops.secrets."forgejo/user1/email".path;
admin = true;
};
};
};
2024-09-18 09:58:09 -03:00
settings = {
DEFAULT = {
APP_NAME = "Capytal Code";
};
server = rec {
HTTP_PORT = forgejoCfg.port;
DOMAIN = "forge.capytal.company";
2024-09-18 09:58:09 -03:00
ROOT_URL = "https://${DOMAIN}";
};
project = {
PROJECT_BOARD_BASIC_KANBAN_TYPE = [
];
};
repository = {
DEFAULT_REPO_UNITS = [
"repo.code"
"repo.issues"
"repo.pulls"
];
};
2024-09-18 09:58:09 -03:00
admin = {
DISABLE_REGULAR_ORG_CREATION = true;
USER_DISABLED_FEATURES = "deletion manage_ssh_keys manage_gpg_keys";
EXTERNAL_USER_DISABLED_FEATURES = "deletion manage_ssh_keys manage_gpg_keys";
};
service = {
DISABLE_REGISTRATION = true;
};
security = {
REVERSE_PROXY_TRUSTED_PROXIES = "127.0.0.0/8,::1/128";
};
2024-09-18 09:58:09 -03:00
ui = {
2024-11-08 10:18:58 -03:00
DEFAULT_THEME = "capytal-dark";
2024-09-18 09:58:09 -03:00
};
};
};
}