VEGAS/coredns: download StevenBlack hosts inline
This commit is contained in:
parent
61480c42f8
commit
f3580748c5
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue