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

nixos/routnerr-2: WIP WWAN configuration

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-22 21:59:48 -04:00
parent 6c039ebd2e
commit d93398076f
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94

View file

@ -53,6 +53,13 @@ in {
'';
};
iproute2 = {
enable = true;
rttablesExtraConfig = ''
10 wwan0
'';
};
interfaces = with vars.interfaces; {
${enp2s0.name} = mkInterface enp2s0;
${lan0.name} = mkInterface lan0;
@ -61,6 +68,13 @@ in {
${guest0.name} = mkInterface guest0;
${iot0.name} = mkInterface iot0;
${tengb0.name} = mkInterface tengb0;
"backup0" = {
ipv4.addresses = [{
address = "192.168.40.1";
prefixLength = 24;
}];
tempAddress = "disabled";
};
};
vlans = with vars.interfaces; {
@ -80,6 +94,10 @@ in {
id = 30;
interface = "${enp2s0.name}";
};
"backup0" = {
id = 40;
interface = "${enp2s0.name}";
};
${iot0.name} = {
id = 66;
interface = "${enp2s0.name}";