From 242210c2e0d651fc9c3755599419e7cbbb88cb85 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Fri, 20 Jun 2025 19:10:09 +0200 Subject: [PATCH] remove broken dns --- machines/genepi/configuration.nix | 1 - machines/genepi/dns.nix | 35 ------------------------------- 2 files changed, 36 deletions(-) delete mode 100644 machines/genepi/dns.nix diff --git a/machines/genepi/configuration.nix b/machines/genepi/configuration.nix index 576dc27..58c57c7 100644 --- a/machines/genepi/configuration.nix +++ b/machines/genepi/configuration.nix @@ -8,7 +8,6 @@ ./acme.nix ./boot.nix ./builder.nix - ./dns.nix ./freshrss.nix ./glance.nix ./homeassistant.nix diff --git a/machines/genepi/dns.nix b/machines/genepi/dns.nix deleted file mode 100644 index 086bcc0..0000000 --- a/machines/genepi/dns.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, lib, ... }: -let - domain = "home.rpqt.fr"; - genepi = { - ip = "100.83.123.79"; - subdomains = [ - "glance" - "grafana" - "images" - "rss" - "tw" - ]; - }; -in -{ - networking.firewall.interfaces."${config.services.tailscale.interfaceName}" = { - allowedTCPPorts = [ 53 ]; - allowedUDPPorts = [ 53 ]; - }; - - services.unbound = { - enable = true; - resolveLocalQueries = false; - - settings = { - server = { - interface = [ "${config.services.tailscale.interfaceName}" ]; - access-control = [ "100.0.0.0/8 allow" ]; - - local-zone = lib.map (subdomain: ''"${subdomain}.${domain}." redirect'') genepi.subdomains; - local-data = lib.map (subdomain: ''"${subdomain}.${domain}. IN A ${genepi.ip}"'') genepi.subdomains; - }; - }; - }; -}