mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos/routnerr-2: CoreRAD automatic routes
This commit is contained in:
parent
14463db199
commit
c2ebb93a3e
1 changed files with 3 additions and 8 deletions
|
@ -43,20 +43,15 @@ in {
|
|||
|
||||
# Automatically use the appropriate interface address as a DNS server.
|
||||
rdnss = [ { } ];
|
||||
|
||||
# Automatically propagate routes owned by loopback.
|
||||
route = [ { } ];
|
||||
} // (
|
||||
# Configure DNS search on some trusted LANs, or omit otherwise.
|
||||
#
|
||||
# TODO(mdlayher): probably rename to ifi.trusted.
|
||||
if ifi.internal_dns then {
|
||||
dnssl = [{ domain_names = [ vars.domain ]; }];
|
||||
|
||||
# This router owns the GUA /56 and ULA /48.
|
||||
#
|
||||
# TODO(mdlayher): ::/N wildcard syntax?
|
||||
route = [
|
||||
{ prefix = "2600:6c4a:787f:1900::/56"; }
|
||||
{ prefix = "fd9e:1a04:f01d::/48"; }
|
||||
];
|
||||
} else
|
||||
{ }));
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue