Desktop: Fix NM unmanaged networks.

This commit is contained in:
Dmitry Voronin 2024-11-29 04:47:05 +03:00
parent a6aa127d6c
commit d503b7ee9e
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
4 changed files with 36 additions and 39 deletions

View file

@ -1,13 +1,11 @@
{ ... }: {
systemd.network = {
networks = {
systemd.network.networks = {
"10-lan" = {
matchConfig.Name = "enp5s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = "yes";
DHCP = false;
DNS = "10.0.0.1";
IPv6AcceptRA = true;
};
address = [
"10.0.0.7/24"
@ -17,5 +15,4 @@
];
};
};
};
}

View file

@ -1,13 +1,12 @@
{ ... }: {
systemd.network = {
networks = {
systemd.network.networks = {
"10-lan" = {
matchConfig.Name = "enp4s0";
linkConfig.RequiredForOnline = "routable";
networkConfig = {
DHCP = "yes";
DHCP = false;
DNS = "10.0.0.1";
IPv6AcceptRA = true;
# IPv6AcceptRA = true;
};
address = [
"10.0.0.3/24"
@ -17,5 +16,4 @@
];
};
};
};
}

View file

@ -19,9 +19,6 @@ in {
# Disable SSH access from everywhere, configure access bellow.
services.openssh.openFirewall = false;
# NOTE: Debugging.
systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
# Wan configuration.
systemd.network = {
networks = {

View file

@ -8,14 +8,19 @@
networking = {
dhcpcd.enable = false;
useDHCP = false;
useNetworkd = true;
networkmanager = {
enable = true;
unmanaged = [
"bridge"
"ethernet"
"loopback"
"wireguard"
"type:bridge"
"type:ethernet"
"type:loopback"
# "type:wireguard"
];
};
};
# NOTE: Debugging.
# systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
}