feat: Added stuff

This commit is contained in:
uttarayan21
2025-07-15 23:58:03 +05:30
parent 28f3b6aba1
commit dc1dfbf389
6 changed files with 42 additions and 15 deletions

View File

@@ -1,21 +1,40 @@
{...}: {
{config, ...}: {
virtualisation.docker.enable = true;
sops = {
secrets."gitea/token" = {};
};
services = {
gitea = {
enable = true;
settings = {
service = {
# DISABLE_REGISTRATION = false;
ENABLE_REVERSE_PROXY_AUTHENTICATION = true;
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true;
};
mailer = {
ENABLED = true;
PROTOCOL = "sendmail";
# SENDMAIL_PATH = "sendmail";
};
security = {
REVERSE_PROXY_AUTHENTICATION_USER = "REMOTE-USER";
};
server = {
ROOT_URL = "https://git.darksailor.dev";
DOMAIN = "git.darksailor.dev";
};
};
};
gitea-actions-runner = {
instances = {
mirai = {
name = "mirai";
enable = true;
url = "https://git.darksailor.dev";
labels = [
"ubuntu-latest:docker://node:18-bullseye"
];
tokenFile = config.sops.secrets."gitea/token".path;
};
};
};
caddy = {