Desktop: Fix NM unmanaged networks.
This commit is contained in:
parent
a6aa127d6c
commit
d503b7ee9e
|
@ -1,21 +1,18 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
systemd.network = {
|
systemd.network.networks = {
|
||||||
networks = {
|
"10-lan" = {
|
||||||
"10-lan" = {
|
matchConfig.Name = "enp5s0";
|
||||||
matchConfig.Name = "enp5s0";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
linkConfig.RequiredForOnline = "routable";
|
networkConfig = {
|
||||||
networkConfig = {
|
DHCP = false;
|
||||||
DHCP = "yes";
|
DNS = "10.0.0.1";
|
||||||
DNS = "10.0.0.1";
|
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
address = [
|
|
||||||
"10.0.0.7/24"
|
|
||||||
];
|
|
||||||
routes = [
|
|
||||||
{ Gateway = "10.0.0.1"; }
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
address = [
|
||||||
|
"10.0.0.7/24"
|
||||||
|
];
|
||||||
|
routes = [
|
||||||
|
{ Gateway = "10.0.0.1"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,21 +1,19 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
systemd.network = {
|
systemd.network.networks = {
|
||||||
networks = {
|
"10-lan" = {
|
||||||
"10-lan" = {
|
matchConfig.Name = "enp4s0";
|
||||||
matchConfig.Name = "enp4s0";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
linkConfig.RequiredForOnline = "routable";
|
networkConfig = {
|
||||||
networkConfig = {
|
DHCP = false;
|
||||||
DHCP = "yes";
|
DNS = "10.0.0.1";
|
||||||
DNS = "10.0.0.1";
|
# IPv6AcceptRA = true;
|
||||||
IPv6AcceptRA = true;
|
|
||||||
};
|
|
||||||
address = [
|
|
||||||
"10.0.0.3/24"
|
|
||||||
];
|
|
||||||
routes = [
|
|
||||||
{ Gateway = "10.0.0.1"; }
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
address = [
|
||||||
|
"10.0.0.3/24"
|
||||||
|
];
|
||||||
|
routes = [
|
||||||
|
{ Gateway = "10.0.0.1"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,9 +19,6 @@ in {
|
||||||
# Disable SSH access from everywhere, configure access bellow.
|
# Disable SSH access from everywhere, configure access bellow.
|
||||||
services.openssh.openFirewall = false;
|
services.openssh.openFirewall = false;
|
||||||
|
|
||||||
# NOTE: Debugging.
|
|
||||||
systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
|
||||||
|
|
||||||
# Wan configuration.
|
# Wan configuration.
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
networks = {
|
networks = {
|
||||||
|
|
|
@ -8,14 +8,19 @@
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
dhcpcd.enable = false;
|
dhcpcd.enable = false;
|
||||||
|
useDHCP = false;
|
||||||
|
useNetworkd = true;
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
enable = true;
|
enable = true;
|
||||||
unmanaged = [
|
unmanaged = [
|
||||||
"bridge"
|
"type:bridge"
|
||||||
"ethernet"
|
"type:ethernet"
|
||||||
"loopback"
|
"type:loopback"
|
||||||
"wireguard"
|
# "type:wireguard"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# NOTE: Debugging.
|
||||||
|
# systemd.services."systemd-networkd".environment.SYSTEMD_LOG_LEVEL = "debug";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue