71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
networking = {
|
|
hostName = "odin";
|
|
useDHCP = false;
|
|
networkmanager.enable = false;
|
|
useNetworkd = true;
|
|
nftables.enable = true;
|
|
|
|
firewall = {
|
|
allowedTCPPorts = [ 8443 ];
|
|
};
|
|
};
|
|
|
|
systemd = {
|
|
coredump.enable = false;
|
|
network = {
|
|
enable = true;
|
|
|
|
wait-online = {
|
|
anyInterface = true;
|
|
};
|
|
|
|
netdevs = {
|
|
"25-vmbr0" = {
|
|
netdevConfig = {
|
|
Kind = "bridge";
|
|
Name = "vmbr0";
|
|
MACAddress = "48:21:0b:56:b1:42";
|
|
};
|
|
};
|
|
};
|
|
|
|
networks = {
|
|
"40-enp86s0" = {
|
|
matchConfig = {
|
|
Name = "enp86s0";
|
|
};
|
|
|
|
networkConfig = {
|
|
# DHCP = "yes";
|
|
Bridge = "vmbr0";
|
|
};
|
|
};
|
|
"40-vmbr0" = {
|
|
matchConfig = {
|
|
Name = "vmbr0";
|
|
};
|
|
|
|
networkConfig = {
|
|
Address = "10.0.0.252/24";
|
|
Gateway = "10.0.0.1";
|
|
DNS = "10.0.0.1";
|
|
DHCP = "no";
|
|
};
|
|
};
|
|
};
|
|
|
|
links = {
|
|
"40-enp86s0" = {
|
|
matchConfig = {
|
|
OriginalName = "enp86s0";
|
|
};
|
|
linkConfig = {
|
|
WakeOnLan = "magic";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|