dotfiles/nixos/boxes/bolty/networking.nix

31 lines
525 B
Nix
Raw Normal View History

2023-08-13 17:00:41 +01:00
{
config,
pkgs,
inputs,
lib,
...
}: {
2023-04-22 12:19:16 +01:00
networking.hostName = "bolty";
networking.networkmanager.enable = false;
2024-04-27 11:33:38 +01:00
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";
2024-12-01 15:59:42 +00:00
dns = ["10.0.0.8"];
2024-04-27 11:33:38 +01:00
};
networks."eth" = {
name = "enp4s0";
networkConfig.Bridge = "br0";
DHCP = "no";
};
2023-04-22 12:19:16 +01:00
};
}