remove broken dns
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
./acme.nix
|
./acme.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./builder.nix
|
./builder.nix
|
||||||
./dns.nix
|
|
||||||
./freshrss.nix
|
./freshrss.nix
|
||||||
./glance.nix
|
./glance.nix
|
||||||
./homeassistant.nix
|
./homeassistant.nix
|
||||||
|
|||||||
@@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user