# SPDX-FileCopyrightText: 2025 Nitesh Kumar Debnath # # SPDX-License-Identifier: GPL-3.0-or-later { flake.modules.nixos.pc = _: let tls_auth_name = "jmfa1wa82x.cloudflare-gateway.com"; v4_address = "172.64.36.1"; v6_address = "2a06:98c1:54::c2e2"; in { networking = { domain = "home.arpa"; # nameservers = [ # # "1.1.1.1" # oh no # "127.0.0.1" # "::1" # ]; networkmanager.dns = "none"; }; # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # Enable networking # networking.networkmanager.enable = true; services.stubby = { enable = false; settings = { dns_transport_list = [ "GETDNS_TRANSPORT_TLS" ]; edns_client_subnet_private = 1; idle_timeout = 10000; listen_addresses = [ "127.0.0.1" "0::1" ]; log_level = "GETDNS_LOG_NOTICE"; resolution_type = "GETDNS_RESOLUTION_STUB"; round_robin_upstreams = 1; tls_authentication = "GETDNS_AUTHENTICATION_REQUIRED"; tls_query_padding_blocksize = 128; upstream_recursive_servers = [ { address_data = v4_address; inherit tls_auth_name; } { address_data = v6_address; inherit tls_auth_name; } ]; }; }; }; }