Use clan vars instead of secrets

This commit is contained in:
Pedro Rey Anca 2025-08-21 15:48:27 +02:00
parent 0f7761b8f9
commit f4f85dc91a
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
2 changed files with 30 additions and 2 deletions

View file

@ -1,7 +1,15 @@
{config, ...}: {
clan.core.vars.generators.duckdns = {
prompts.token = {
description = "Duck DNS token used to update the Dynamic DNS";
type = "hidden";
persist = true;
};
};
services.duckdns = {
enable = true;
domains = ["campares.duckdns.org"];
tokenFile = config.sops.secrets.duckdns-token.path;
tokenFile = config.clan.core.vars.generators.duckdns.files.token.path;
};
}