networking.hostFiles

NixOS option

Files that should be concatenated together to form /etc/hosts.

type: list of absolute path
Default
<rendered-html><p>Hosts from <code class="interpreted-text"
role="option">networking.hosts</code> and <code class="interpreted-text"
role="option">networking.extraHosts</code></p>
</rendered-html>
Example
[ "${pkgs.my-blocklist-package}/share/my-blocklist/hosts" ]
declared in: nixos/modules/config/networking.nixView source on NixOS/nixpkgs →