2024-11-28 22:28:13 +03:00
|
|
|
{ ... }: {
|
2024-11-28 22:06:31 +03:00
|
|
|
# REF: https://nixos.wiki/wiki/Systemd-networkd
|
2024-11-28 22:28:13 +03:00
|
|
|
# SEE: man 5 systemd.network
|
2024-11-28 22:06:31 +03:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
2024-11-28 22:28:13 +03:00
|
|
|
wait-online.enable = false; # HACK: So we can use both NM and networkd.
|
2024-11-28 22:06:31 +03:00
|
|
|
};
|
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
networking = {
|
2024-11-28 22:06:31 +03:00
|
|
|
dhcpcd.enable = false;
|
2024-11-29 01:44:48 +03:00
|
|
|
networkmanager = {
|
|
|
|
enable = true;
|
|
|
|
unmanaged = [
|
|
|
|
"bridge"
|
|
|
|
"ethernet"
|
|
|
|
"loopback"
|
|
|
|
"wireguard"
|
|
|
|
];
|
|
|
|
};
|
2024-11-04 04:37:29 +03:00
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|