30 lines
525 B
Nix
30 lines
525 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}: {
|
|
networking.hostName = "bolty";
|
|
networking.networkmanager.enable = false;
|
|
|
|
systemd.network = {
|
|
enable = true;
|
|
netdevs."br0".netdevConfig = {
|
|
Name = "br0";
|
|
Kind = "bridge";
|
|
};
|
|
networks."br0" = {
|
|
name = "br0";
|
|
address = ["10.0.0.8/24"];
|
|
gateway = ["10.0.0.1"];
|
|
DHCP = "no";
|
|
dns = ["10.0.0.8"];
|
|
};
|
|
networks."eth" = {
|
|
name = "enp4s0";
|
|
networkConfig.Bridge = "br0";
|
|
DHCP = "no";
|
|
};
|
|
};
|
|
}
|