1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/routnerr-3: add LLAs and format

This commit is contained in:
Matt Layher 2023-09-15 21:24:21 -04:00
parent d59a637484
commit a50bf469a4
3 changed files with 12 additions and 13 deletions

View file

@ -62,10 +62,11 @@ in {
# Packages specific to this machine. The base package set is defined in
# lib/system.nix.
environment.systemPackages = with pkgs; [
# Stable packages.
bind
];
environment.systemPackages = with pkgs;
[
# Stable packages.
bind
];
services = {
# Allow mDNS to reflect between VLANs where necessary for devices such as

View file

@ -33,8 +33,11 @@ let
(id: {
matchConfig.Name = name;
# Embed ID directly in IPv4/6 addresses for clarity.
address =
[ "fd9e:1a04:f01d:${toString id}::1/64" "192.168.${toString id}.1/24" ];
address = [
"fd9e:1a04:f01d:${toString id}::1/64"
"fe80::1/64"
"192.168.${toString id}.1/24"
];
networkConfig = {
DHCPPrefixDelegation = true;
DHCPServer = true;
@ -173,7 +176,7 @@ in {
# TODO(mdlayher): eventually it'd be nice to renumber this as
# 192.168.0.1/24 but that would require a lot of device churn.
address = [ "fd9e:1a04:f01d::1/64" "192.168.1.1/24" ];
address = [ "fd9e:1a04:f01d::1/64" "fe80::1/64" "192.168.1.1/24" ];
# VLANs associated with this physical interface.
vlan = [ "lan0" "iot0" "guest0" "lab0" ];

View file

@ -30,12 +30,7 @@ let
all_wans = "wan0, wan1";
# LAN interfaces, segmented into trusted, limited, and untrusted groups.
trusted_lans = with vars.interfaces; [
mgmt0
lan0
lab0
{ name = "ts0"; }
];
trusted_lans = with vars.interfaces; [ mgmt0 lan0 lab0 { name = "ts0"; } ];
limited_lans = with vars.interfaces; [ guest0 ];
untrusted_lans = with vars.interfaces; [ iot0 ];