diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-15 12:03:58 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-15 12:03:58 -0500 |
| commit | d2aecd69c17fa64305c07333686576152432993d (patch) | |
| tree | 2f52c7808a6cbd57ef60284947d3728a38cfab34 /modules/system/nixos/networking/resolved.nix | |
| parent | f5ef0cf848e65d4fea2be8dee7bc1c72ad67046f (diff) | |
changes.
Diffstat (limited to 'modules/system/nixos/networking/resolved.nix')
| -rw-r--r-- | modules/system/nixos/networking/resolved.nix | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/modules/system/nixos/networking/resolved.nix b/modules/system/nixos/networking/resolved.nix index 161471f..e49e004 100644 --- a/modules/system/nixos/networking/resolved.nix +++ b/modules/system/nixos/networking/resolved.nix @@ -1,40 +1,6 @@ -{config, ...}: let - hostname = config.networking.hostName; - netname = "${hostname}net0"; -in { +{config, ...}: { networking.resolvconf.enable = false; - services.dnsmasq = { - enable = true; - settings = { - port = 5353; - address = "/.${hostname}/127.0.0.1"; - bind-interfaces = true; - }; - }; - - systemd.network.netdevs."19-localnet" = { - netdevConfig = { - Name = netname; - Kind = "dummy"; - }; - }; - - systemd.network.networks."19-localnet" = { - matchConfig = { - Name = netname; - }; - address = ["192.0.2.1/32"]; # BUG(?): a dummy network must have an address for systemd-networkd to attempt to use it to resolve dns queries (that took forever to debug) - dns = ["127.0.0.1:5353"]; - domains = ["~${hostname}"]; - extraConfig = '' - LinkLocalAddressing=no - ConfigureWithoutCarrier=yes - DNSSEC=no - DNSOverTLS=no - ''; - }; - networking.nameservers = [ "9.9.9.9#dns.quad9.net" "149.112.112.112#dns.quad9.net" |
