nix/system/Network.nix

14 lines
286 B
Nix
Raw Normal View History

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 = {
networkmanager.enable = true;
2024-11-28 22:06:31 +03:00
dhcpcd.enable = false;
2024-11-04 04:37:29 +03:00
};
}