explicit bridge networking on bolty

This commit is contained in:
Cyryl Płotnicki 2023-04-22 12:19:16 +01:00
parent 01a2edd5b8
commit 9d1c00df96
2 changed files with 20 additions and 0 deletions

View file

@ -6,6 +6,7 @@
./home-assistant.nix
./influxdb.nix
./matrix-server.nix
./networking.nix
./nix-store-server.nix
./print-server.nix
./real-hardware.nix

View file

@ -0,0 +1,19 @@
{ config, pkgs, inputs, lib, ... }: {
networking.hostName = "bolty";
systemd.network.enable = true;
networking.networkmanager.enable = false;
systemd.network.netdevs."br0".netdevConfig = {
Name = "br0";
Kind = "bridge";
};
systemd.network.networks."br0" = {
name = "br0";
address = [ "10.0.0.8/24" ];
DHCP = "yes";
};
systemd.network.networks."eth" = {
name = "enp4s0";
networkConfig.Bridge = "br0";
};
}