summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xsystem/nanopi.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/system/nanopi.nix b/system/nanopi.nix
index 7da53b7e..6116c62f 100755
--- a/system/nanopi.nix
+++ b/system/nanopi.nix
@@ -5,6 +5,8 @@
 }:
 let
   fsTypes = [ "f2fs" "ext" "exfat" "vfat" ];
+  domain = "home.arpa";
+  ts_domain = "hydra-pinecone.ts.net";
 in
 {
   imports = [
@@ -88,8 +90,8 @@ in
 
   networking = {
     hostName = "nanopi";
-    domain = "lan";
-    search = [ "lan" ];
+    domain = domain;
+    search = [ domain ];
     useDHCP = false;
     useNetworkd = true;
     firewall = {
@@ -223,7 +225,7 @@ in
       &&
       !config.services.resolved.enable
     ) ''
-    search lan hydra-pinecone.ts.net
+    search ${domain} ${ts_domain}
     nameserver ::1
     nameserver 127.0.0.1
     options edns0
@@ -320,6 +322,9 @@ in
           IPv6SendRA = true;
           DHCPPrefixDelegation = true;
           ConfigureWithoutCarrier = true;
+          MulticastDNS = true;
+          BindCarrier = [ "lan0" "lan1" ];
+          Domains = [ domain ];
         };
         dhcpPrefixDelegationConfig = {
           UplinkInterface = "wan0";
@@ -467,7 +472,7 @@ in
     alwaysKeepRunning = true;
     settings = {
       local-ttl = 60;
-      domain = "lan";
+      domain = domain;
       dhcp-fqdn = false;
       domain-needed = true;
       bogus-priv = true;
@@ -496,11 +501,6 @@ in
       ];
       interface-name = [
         "nanopi,bridge0"
-        "nanopi.lan,bridge0"
-        "home.alanpearce.eu,wan0"
-        "nanopi.alanpearce.eu,wan0"
-        "nanopi.lan.alanpearce.eu,bridge0"
-        "syncthing.lan.alanpearce.eu,bridge0"
         "wan,wan0"
         "wlan,wlan0"
         "wwan,wwan0"
@@ -856,7 +856,7 @@ in
         "10.0.0.1:53 -group lan -exclude-default-group"
       ];
       nameserver = [
-        "/lan/lan"
+        "/${domain}/${domain}"
       ];
       dualstack-ip-selection = true;
       dualstack-ip-selection-threshold = 10;