hosts/carbon: Move net-dsl to seperate file
This commit is contained in:
parent
8e88006abe
commit
090e2d6e48
@ -7,6 +7,7 @@
|
|||||||
../../configuration/router
|
../../configuration/router
|
||||||
|
|
||||||
./dns.nix
|
./dns.nix
|
||||||
|
./net-dsl.nix
|
||||||
./net-gastnetz.nix
|
./net-gastnetz.nix
|
||||||
./net-heimnetz.nix
|
./net-heimnetz.nix
|
||||||
./net-voip.nix
|
./net-voip.nix
|
||||||
@ -32,19 +33,6 @@
|
|||||||
{ address = "10.152.0.1"; prefixLength = 32; } # Anycast
|
{ address = "10.152.0.1"; prefixLength = 32; } # Anycast
|
||||||
];
|
];
|
||||||
# Network
|
# Network
|
||||||
## DSL-Uplink
|
|
||||||
networking.vlans."enp1s0.7" = {
|
|
||||||
id = 7;
|
|
||||||
interface = "enp1s0";
|
|
||||||
};
|
|
||||||
networking.vlans."enp3s0.7" = {
|
|
||||||
id = 7;
|
|
||||||
interface = "enp3s0";
|
|
||||||
};
|
|
||||||
networking.bridges."net-dsl".interfaces = [
|
|
||||||
"enp1s0.7"
|
|
||||||
"enp3s0.7"
|
|
||||||
];
|
|
||||||
## LTE-Uplink
|
## LTE-Uplink
|
||||||
networking.vlans."enp1s0.102" = {
|
networking.vlans."enp1s0.102" = {
|
||||||
id = 102;
|
id = 102;
|
||||||
|
19
hosts/carbon/net-dsl.nix
Normal file
19
hosts/carbon/net-dsl.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
## DSL-Uplink
|
||||||
|
networking.vlans."enp1s0.7" = {
|
||||||
|
id = 7;
|
||||||
|
interface = "enp1s0";
|
||||||
|
};
|
||||||
|
networking.vlans."enp3s0.7" = {
|
||||||
|
id = 7;
|
||||||
|
interface = "enp3s0";
|
||||||
|
};
|
||||||
|
networking.bridges."net-dsl".interfaces = [
|
||||||
|
"enp1s0.7"
|
||||||
|
"enp3s0.7"
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user