2023-09-01 20:07:03 +02:00
|
|
|
{lib, ...}: {
|
2023-05-18 06:57:58 +02:00
|
|
|
networking = {
|
|
|
|
useNetworkd = true;
|
|
|
|
dhcpcd.enable = false;
|
2023-09-03 13:26:08 +02:00
|
|
|
# allow mdns port
|
|
|
|
firewall.allowedUDPPorts = [5353];
|
2023-05-18 06:57:58 +02:00
|
|
|
};
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
wait-online.anyInterface = true;
|
|
|
|
};
|
2023-09-03 13:05:23 +02:00
|
|
|
system.nssDatabases.hosts = lib.mkMerge [
|
|
|
|
(lib.mkBefore ["mdns_minimal [NOTFOUND=return]"])
|
|
|
|
(lib.mkAfter ["mdns"])
|
|
|
|
];
|
2023-05-18 06:57:58 +02:00
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
2023-09-02 20:11:06 +02:00
|
|
|
# man I whish dnssec would be viable to use
|
2023-05-18 06:57:58 +02:00
|
|
|
dnssec = "allow-downgrade";
|
2023-09-02 20:11:06 +02:00
|
|
|
llmnr = "false";
|
|
|
|
extraConfig = ''
|
|
|
|
Domains=~.
|
|
|
|
MulticastDNS=true
|
|
|
|
'';
|
2023-05-18 06:57:58 +02:00
|
|
|
};
|
|
|
|
}
|