VEGAS/coredns: download StevenBlack hosts inline

This commit is contained in:
Max Headroom 2021-12-01 22:25:41 +01:00
parent 61480c42f8
commit f3580748c5

View file

@ -2,6 +2,10 @@
# TODO: is this secure?
let
inherit (hosts.${config.networking.hostName}) interfaces;
stevenBlack = builtins.fetchurl {
url = "https://raw.githubusercontent.com/StevenBlack/hosts/9ac56f6b39644cb9a30451cf5195a80714eba3c2/hosts";
sha256 = "sha256-1QdfL/D9yfgZva25ybx4r1loYEzqtxIuGaGrwYZHJxE=";
};
in {
imports = [ ./zones.nix ];
@ -15,7 +19,7 @@ in {
config = ''
. {
bind ${interfaces.vstub.addr}
hosts /ipfs/QmRgDmvcHsB61pYEPDrwsvHwkoC6hCR9dTEnvkDHrypcFJ {
hosts ${stevenBlack} {
fallthrough
}
chaos "Private Void DNS" info@privatevoid.net