feat: Added gitea registration token

This commit is contained in:
uttarayan21
2025-07-22 11:18:51 +05:30
parent b6d46bdb79
commit dcc5fc6496

View File

@@ -1,8 +1,13 @@
{config, ...}: { {config, ...}: {
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
sops = { sops = {
secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User; # secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
# secrets."gitea/registration" = {}; secrets."gitea/registration" = {};
templates = {
"GITEA_REGISTRATION_TOKEN.env".content = ''
TOKEN=${config.sops.placeholder."gitea/registration"}
'';
};
}; };
services = { services = {
gitea = { gitea = {
@@ -34,7 +39,7 @@
labels = [ labels = [
"ubuntu-latest:docker://node:18-bullseye" "ubuntu-latest:docker://node:18-bullseye"
]; ];
tokenFile = config.sops.secrets."gitea/registration".path; tokenFile = "${config.sops.templates."GITEA_REGISTRATION_TOKEN.env".path}";
}; };
}; };
}; };