all repos — nixfiles @ a1eae40100b330b9fea6a8e5b28605c223663fcd

System and user configuration, managed by nix and home-manager

use predefined fqdn instead of generating every time

Alin
commit

a1eae40100b330b9fea6a8e5b28605c223663fcd

parent

25bd841dcab3ee6d6af260147934a3fb029f0b24

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M system/roles/router.nix → system/roles/router.nix
@@ -9,7 +9,7 @@ wan = config.networking.nat.externalInterface;
lans = config.networking.nat.internalInterfaces; lan = builtins.head lans; - inherit (config.networking) domain hostName; + inherit (config.networking) domain hostName fqdn; wanPrefixLen = 56;
@@ -69,7 +69,7 @@ ];
} // (lib.genAttrs myAddresses ( lib.const [ - "${hostName}.${domain}" + "${fqdn}" "${hostName}" ] ));
@@ -351,7 +351,7 @@ ];
local-ttl = 1; # defaults to 0 (client should not cache), but 1s shouldn't hurt interface-name = [ "${hostName},${lan}" # prevents returning 127.0.0.2 - "${hostName}.${domain},${lan}" # prevents returning 127.0.0.2 + "${fqdn},${lan}" # prevents returning 127.0.0.2 "wan.${domain},${wan}/6" ]; };