Compare commits

..

2 Commits

Author SHA1 Message Date
a34713ec4b Disable LLMNR. 2025-03-20 06:59:49 +00:00
8454428f89 Switch to systemd-networkd for chilly.
It should hopefully fix the issue where network doesn't come back after
a system config switch.
2025-03-20 06:32:44 +00:00

View File

@@ -40,19 +40,33 @@
users.users.ppetru.extraGroups = [ "libvirtd" ]; users.users.ppetru.extraGroups = [ "libvirtd" ];
networking = { networking.useNetworkd = true;
# TODO: try using DHCP for br0. will probably need a hardcoded MAC systemd.network.enable = true;
defaultGateway = "192.168.1.1"; # not useful and potentially a security loophole
nameservers = [ "192.168.1.1" ]; services.resolved.llmnr = "false";
bridges.br0.interfaces = [ "enp1s0" ];
interfaces.br0 = { systemd.network.netdevs."10-br0" = {
useDHCP = false; netdevConfig = {
ipv4.addresses = [ Name = "br0";
{ Kind = "bridge";
"address" = "192.168.1.5"; # when switching to DHCP, fill this in with value from enp1s0 or something made up starting with 02:
"prefixLength" = 24; # MACAddress = "";
} };
]; };
};
systemd.network.networks."20-enp1s0" = {
matchConfig.Name = "enp1s0";
networkConfig.Bridge = "br0";
};
systemd.network.networks."30-br0" = {
matchConfig.Name = "br0";
networkConfig = {
# TODO: use DHCP. Would need a hardcoded MAC (see above)
Address = [ "192.168.1.5/24" ];
Gateway = [ "192.168.1.1" ];
DNS = [ "192.168.1.1" ];
# DHCP = "yes";
};
}; };
} }