From 090e2d6e483187789bf4934469c99d5d90a4e2c4 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 14 Jul 2024 00:46:22 +0200 Subject: [PATCH] hosts/carbon: Move net-dsl to seperate file --- hosts/carbon/configuration.nix | 14 +------------- hosts/carbon/net-dsl.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 hosts/carbon/net-dsl.nix 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" + ]; + +}