nix-config/modules/config/net.nix

25 lines
521 B
Nix
Raw Normal View History

{lib, ...}: {
networking = {
useNetworkd = true;
dhcpcd.enable = false;
};
systemd.network = {
enable = true;
wait-online.anyInterface = true;
};
system.nssDatabases.hosts = lib.mkMerge [
(lib.mkBefore ["mdns_minimal [NOTFOUND=return]"])
(lib.mkAfter ["mdns"])
];
services.resolved = {
enable = true;
2023-09-02 20:11:06 +02:00
# man I whish dnssec would be viable to use
dnssec = "allow-downgrade";
2023-09-02 20:11:06 +02:00
llmnr = "false";
extraConfig = ''
Domains=~.
MulticastDNS=true
'';
};
}