Disable resolution from /etc/hosts

Screws with resolution of the host it's running on (returns 127.0.0.1).
This commit is contained in:
niten 2024-08-23 11:19:24 -07:00
parent 3d82323e22
commit f1f6f5e6a1
2 changed files with 11 additions and 7 deletions

View File

@ -72,6 +72,7 @@ let
safesearch_enabled = false; safesearch_enabled = false;
use_private_ptr_resolvers = cfg.dns.reverse-dns != [ ]; use_private_ptr_resolvers = cfg.dns.reverse-dns != [ ];
local_ptr_upstreams = cfg.dns.reverse-dns; local_ptr_upstreams = cfg.dns.reverse-dns;
hostsfile_enabled = false;
}; };
tls.enabled = false; tls.enabled = false;
filters = imap1 (i: filters = imap1 (i:

View File

@ -19,7 +19,8 @@ in {
build-timestamp = mkOption { build-timestamp = mkOption {
type = int; type = int;
description = "Timestamp associated with the build. Used for e.g. DNS serials."; description =
"Timestamp associated with the build. Used for e.g. DNS serials.";
}; };
local-domain = mkOption { local-domain = mkOption {
@ -45,7 +46,8 @@ in {
local-admins = mkOption { local-admins = mkOption {
type = listOf str; type = listOf str;
description = "List of users who should have admin access to the local host."; description =
"List of users who should have admin access to the local host.";
}; };
local-groups = mkOption { local-groups = mkOption {
@ -55,7 +57,8 @@ in {
local-hosts = mkOption { local-hosts = mkOption {
type = attrsOf (submodule host.hostOpts); type = attrsOf (submodule host.hostOpts);
description = "List of hosts that should be considered local to the current host."; description =
"List of hosts that should be considered local to the current host.";
}; };
local-users = mkOption { local-users = mkOption {
@ -65,7 +68,8 @@ in {
local-networks = mkOption { local-networks = mkOption {
type = listOf str; type = listOf str;
description = "Networks which are considered local to this host, site, or domain."; description =
"Networks which are considered local to this host, site, or domain.";
}; };
service-home = mkOption { service-home = mkOption {
@ -81,8 +85,7 @@ in {
}; };
config = { config = {
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules =
"d ${config.instance.service-home} 755 root root - -" [ "d ${config.instance.service-home} 755 root root - -" ];
];
}; };
} }