19 lines
452 B
Nix
19 lines
452 B
Nix
{ 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";
|
|
};
|
|
}
|