aboutsummaryrefslogtreecommitdiff
path: root/nixos/machine
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/machine')
-rw-r--r--nixos/machine/adm-omnia.nix18
1 files changed, 15 insertions, 3 deletions
diff --git a/nixos/machine/adm-omnia.nix b/nixos/machine/adm-omnia.nix
index 437831b..fd6d654 100644
--- a/nixos/machine/adm-omnia.nix
+++ b/nixos/machine/adm-omnia.nix
@@ -40,9 +40,21 @@ with lib; {
};
#systemd.services."pppd-wan".after = ["sys-subsystem-net-devices-end2.device"];
- networking.bridges = {
- brlan.interfaces = ["lan1" "lan2" "lan3" "lan4"];
- brguest.interfaces = ["lan0"];
+ environment.systemPackages = [pkgs.tcpdump];
+
+ networking = {
+ useNetworkd = true;
+ useDHCP = false;
+ };
+ systemd.network.networks = {
+ "lan-brlan" = {
+ matchConfig.Name = "lan[1-4]";
+ networkConfig.Bridge = "brlan";
+ };
+ "lan0-brguest" = {
+ matchConfig.Name = "lan0";
+ networkConfig.Bridge = "brguest";
+ };
};
};
}