From fbbf34c7b6ba70a718abf655c0711b6ac5ff20e8 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Fri, 25 Oct 2024 20:07:38 -0300 Subject: partial commit --- modules/ddns.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'modules/ddns.nix') diff --git a/modules/ddns.nix b/modules/ddns.nix index 53dcb0f..3a3196e 100644 --- a/modules/ddns.nix +++ b/modules/ddns.nix @@ -1,6 +1,17 @@ -{ config, lib, pkgs, ...}: with lib; { +{ config, lib, ...}: with lib; { options.santi-modules.services.ddns.enable = mkEnableOption "Enable ddns service"; config = mkIf config.santi-modules.services.ddns.enable { + networking.enableIPv6 = true; + services.cloudflared = { + enable = true; + tunnels.iori = { + default = "http_status:404"; + credentialsFile = "/var/lib/cloudflared/iori.json"; + ingress = { + "santi.net.br" = "http://localhost:80"; + }; + }; + }; services.inadyn = { enable = true; user = "leonardo"; -- cgit v1.2.3