feat: Added gitea registration token
This commit is contained in:
@@ -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}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user