secrets: move gandi api key to agenix

This commit is contained in:
Antoine Martin 2022-03-11 17:10:44 +01:00
parent f4e2d1739d
commit 238294b7bf
6 changed files with 13 additions and 2 deletions

View file

@ -54,7 +54,7 @@ in
"${domain}" = {
extraDomainNames = [ "*.${domain}" ];
dnsProvider = "gandiv5";
credentialsFile = pkgs.writeText "gandi-creds.env" gandiKey;
credentialsFile = config.age.secrets."gandi/api-key".path;
group = "nginx";
};
};