mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos: changes for server VMs on lab VLAN
This commit is contained in:
parent
f57a789fca
commit
e68e9c5c51
3 changed files with 8 additions and 8 deletions
|
@ -31,7 +31,7 @@ in {
|
|||
|
||||
# Trusted DNS.
|
||||
. {
|
||||
bind ${vars.localhost.ipv4} ${vars.localhost.ipv6} ${lan0.ipv4} ${lan0.ipv6.ula} ${wg0.ipv4} ${wg0.ipv6.ula}
|
||||
bind ${vars.localhost.ipv4} ${vars.localhost.ipv6} ${lab0.ipv4} ${lab0.ipv6.ula} ${lan0.ipv4} ${lan0.ipv6.ula} ${wg0.ipv4} ${wg0.ipv6.ula}
|
||||
cache 3600 {
|
||||
success 8192
|
||||
denial 4096
|
||||
|
|
|
@ -39,15 +39,15 @@ in {
|
|||
option domain-name-servers ${ifi.ipv4};
|
||||
range ${pfx}.20 ${pfx}.240;
|
||||
|
||||
allow booting;
|
||||
next-server ${ifi.ipv4};
|
||||
option bootfile-name "netboot.xyz.kpxe";
|
||||
|
||||
${
|
||||
# Configure additional options for the primary internal LAN.
|
||||
if ifi.internal_domain then ''
|
||||
option domain-search "${vars.domain}";
|
||||
option domain-name "${vars.domain}";
|
||||
|
||||
allow booting;
|
||||
next-server ${ifi.ipv4};
|
||||
option bootfile-name "netboot.xyz.kpxe";
|
||||
'' else
|
||||
""
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Variables referenced two or more places in the configuration.
|
||||
let
|
||||
server_ipv4 = "192.168.1.4";
|
||||
server_ipv6 = "2600:6c4a:787f:d100:4cb:90ff:fe4d:a259";
|
||||
server_ipv6 = "2600:6c4a:787f:d100:1e1b:dff:feea:830f";
|
||||
|
||||
# Configuration variables which are used to build out configs elsewhere.
|
||||
in {
|
||||
|
@ -35,9 +35,9 @@ in {
|
|||
ipv4 = server_ipv4;
|
||||
ipv6 = {
|
||||
gua = server_ipv6;
|
||||
ula = "fd9e:1a04:f01d:0:4cb:90ff:fe4d:a259";
|
||||
ula = "fd9e:1a04:f01d:0:1e1b:dff:feea:830f";
|
||||
};
|
||||
mac = "06:cb:90:4d:a2:59";
|
||||
mac = "1c:1b:0d:ea:83:0f";
|
||||
}
|
||||
];
|
||||
# Machines which are considered network infrastructure and not exposed
|
||||
|
|
Loading…
Reference in a new issue