diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index e585000..973c800 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -7,6 +7,7 @@ ../../configuration/router ./dns.nix + ./net-dsl.nix ./net-gastnetz.nix ./net-heimnetz.nix ./net-voip.nix @@ -32,19 +33,6 @@ { address = "10.152.0.1"; prefixLength = 32; } # Anycast ]; # 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 networking.vlans."enp1s0.102" = { id = 102; diff --git a/hosts/carbon/net-dsl.nix b/hosts/carbon/net-dsl.nix new file mode 100644 index 0000000..b67ae33 --- /dev/null +++ b/hosts/carbon/net-dsl.nix @@ -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" + ]; + +}