Network: Use networkd.

This commit is contained in:
Dmitry Voronin 2024-11-28 22:06:31 +03:00
parent 8594c7c31d
commit 0ff6a693a6
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -2,8 +2,14 @@
lib, lib,
... ...
}: { }: {
# REF: https://nixos.wiki/wiki/Systemd-networkd
systemd.network = {
enable = true;
wait-online.enable = false; # So we can use both NM and networkd.
};
networking = { networking = {
useDHCP = lib.mkDefault true;
networkmanager.enable = true; networkmanager.enable = true;
dhcpcd.enable = false;
}; };
} }