feat: Added gitea registration

This commit is contained in:
uttarayan21
2025-07-22 10:53:39 +05:30
parent 974439fb84
commit b6d46bdb79
2 changed files with 21 additions and 20 deletions

View File

@@ -1,9 +1,9 @@
{config, ...}: {
# virtualisation.docker.enable = true;
# sops = {
# # secrets."gitea/token".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
# secrets."gitea/token" = {};
# };
virtualisation.docker.enable = true;
sops = {
secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
# secrets."gitea/registration" = {};
};
services = {
gitea = {
enable = true;
@@ -25,19 +25,19 @@
};
};
};
# 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;
# };
# };
# };
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/registration".path;
};
};
};
caddy = {
virtualHosts."git.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {