diff options
| author | Mel <einebeere@gmail.com> | 2024-12-07 03:24:15 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-12-07 03:41:20 +0100 |
| commit | 44a4f7c6bac97a3381a2b7de8707cd9389f5460f (patch) | |
| tree | f31f04984119dbdb6adba41ed8a1ff1303558d27 /modules/ddns.nix | |
| parent | 8930b867a5bc863cf1362d3d27579e784a4bbe97 (diff) | |
| download | network-44a4f7c6bac97a3381a2b7de8707cd9389f5460f.tar.zst network-44a4f7c6bac97a3381a2b7de8707cd9389f5460f.zip | |
Move secrets and keys into agenix
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'modules/ddns.nix')
| -rw-r--r-- | modules/ddns.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/ddns.nix b/modules/ddns.nix index c9d2abd..8ee9afd 100644 --- a/modules/ddns.nix +++ b/modules/ddns.nix @@ -1,9 +1,13 @@ -{ me, ... }: +{ me, config, ... }: let domain = "rnrd.eu"; in { + age.secrets.cloudflare-dns = { + file = ../secrets/cloudflare-dns.age; + }; + services.ddclient = { enable = true; @@ -20,7 +24,6 @@ in username = "token"; zone = domain; domains = [ "${me.name}.${domain}" ]; - # TODO: use age - passwordFile = "/home/mel/cloudflare-dns-token.pw"; + passwordFile = config.age.secrets.cloudflare-dns.path; }; } |
