dots/hosts/luna/modules/networking.nix

22 lines
531 B
Nix
Executable File

{ hostname, config, ... }:
{
services.resolved = {
enable = true;
domains = [ "~." ];
dnsovertls = "true";
dnssec = "false";
};
networking = {
hostName = hostname;
domain = "price-hiller.com";
fqdn = "${config.networking.hostname}.hosts.${config.networking.domain}";
nameservers = [
"194.242.2.2#dns.mullvad.net"
"2a07:e340::2#dns.mullvad.net"
"91.239.100.100#anycast.uncensoreddns.org"
"2001:67c:28a4::#anycast.uncensoreddns.org"
];
useNetworkd = true;
};
}