2024-03-21 15:00:36 +01:00
|
|
|
{ pkgs, lib, config, ... }:
|
|
|
|
{
|
|
|
|
networking.hostName = "sgx"; # Define your hostname.
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
|
|
|
#networking.domain = "fritz.box";
|
|
|
|
networking.wireless.enable = false; # Enables wireless support via wpa_supplicant.
|
|
|
|
networking.networkmanager.enable = false; # use networkd
|
|
|
|
networking.dhcpcd.enable = false; # use networkd
|
|
|
|
# services.nscd.enableNsncd = false;
|
|
|
|
|
|
|
|
# systemd-networkd
|
|
|
|
systemd.network.enable = true;
|
|
|
|
#systemd.network.wait-online.anyInterface = true;
|
|
|
|
#systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
|
|
|
|
|
|
|
systemd.network.networks."10-br0" = {
|
|
|
|
matchConfig.Name = "br0";
|
|
|
|
DHCP = "yes";
|
|
|
|
linkConfig.RequiredForOnline = "routable";
|
|
|
|
linkConfig.RequiredFamilyForOnline = "both";
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network.netdevs."br0" = {
|
|
|
|
netdevConfig = {
|
|
|
|
Name = "br0";
|
|
|
|
Kind = "bridge";
|
2024-04-10 17:43:39 +02:00
|
|
|
MACAddress = "20:7b:d5:1a:36:3e";
|
2024-03-21 15:00:36 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.network.networks."11-en" = {
|
|
|
|
linkConfig.RequiredForOnline = "enslaved";
|
2024-04-10 17:43:39 +02:00
|
|
|
matchConfig.Name = "enp0s20f0u2u1";
|
2024-03-21 15:00:36 +01:00
|
|
|
networkConfig = {
|
|
|
|
Bridge = "br0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 548 ];
|
|
|
|
networking.firewall.allowPing = true;
|
|
|
|
}
|