summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/ddns.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/ddns.nix b/modules/ddns.nix
new file mode 100644
index 0000000..103f3a9
--- /dev/null
+++ b/modules/ddns.nix
@@ -0,0 +1,20 @@
+{ me, ... }:
+
+let
+ domain = "rnrd.eu";
+in
+{
+ services.ddclient = {
+ enable = true;
+
+ # NameCheap DDNS parameters
+ use = "web, web=dynamicdns.park-your-domain.com/getip";
+ protocol = "namecheap";
+ server = "dynamicdns.park-your-domain.com";
+
+ username = "rnrd.eu";
+ domains = [ "${me.name}.${domain}" ];
+ # TODO: use age
+ passwordFile = "/home/mel/ddclient.pw";
+ };
+}