summary refs log tree commit diff
path: root/machines/lapin
diff options
context:
space:
mode:
Diffstat (limited to 'machines/lapin')
-rw-r--r--machines/lapin/default.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/machines/lapin/default.nix b/machines/lapin/default.nix
index 69960c3..3178a1d 100644
--- a/machines/lapin/default.nix
+++ b/machines/lapin/default.nix
@@ -1,4 +1,4 @@
-{ me, pkgs, lib, ... }:
+{ me, config, ... }:
 
 {
   imports = [
@@ -14,14 +14,17 @@
     ../../services/akkoma
   ];
 
+  age.secrets.cloudflare-dns = {
+    file = ../../secrets/cloudflare-dns.age;
+  };
+
   security.acme.certs."pds.rnrd.eu" = {
     group = "nginx";
     domain = "*.pds.rnrd.eu";
     extraDomainNames = [ "pds.rnrd.eu" ];
     dnsProvider = "cloudflare";
     credentialFiles = {
-      # TODO: use age
-      CLOUDFLARE_DNS_API_TOKEN_FILE = "/home/mel/cloudflare-dns-token.pw";
+      CLOUDFLARE_DNS_API_TOKEN_FILE = config.age.secrets.cloudflare-dns.path;
     };
   };