2023-04-22 12:19:16 +01:00
|
|
|
{ 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" ];
|
2023-04-22 12:43:03 +01:00
|
|
|
gateway = [ "10.0.0.1" ];
|
|
|
|
DHCP = "no";
|
2023-04-22 22:37:02 +01:00
|
|
|
dns = [ "100.100.100.100" "9.9.9.9" ];
|
2023-04-22 12:19:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network.networks."eth" = {
|
|
|
|
name = "enp4s0";
|
|
|
|
networkConfig.Bridge = "br0";
|
2023-04-22 12:43:03 +01:00
|
|
|
DHCP = "no";
|
2023-04-22 12:19:16 +01:00
|
|
|
};
|
|
|
|
}
|