Skip to content

Instantly share code, notes, and snippets.

View dwoffinden's full-sized avatar
😄

Daniel Woffinden dwoffinden

😄
View GitHub Profile
@dwoffinden
dwoffinden / doh-server.nix
Last active March 21, 2023 04:37
Ad-blocking DNS-over-TLS/HTTPS server w/ NixOS & Knot Resolver. Pi-hole alternative.
# Copyright 2020 Google LLC.
# SPDX-License-Identifier: Apache-2.0
{ config, pkgs, ... }:
let
# https://github.com/StevenBlack/hosts/issues/451
# https://github.com/ScriptTiger/Hosts-Conversions
# https://github.com/ScriptTiger/scripttiger.github.io
# https://scripttiger.github.io/alts/
adblockLocalZones = pkgs.stdenv.mkDerivation {
name = "adblock-rpz";

Keybase proof

I hereby claim:

  • I am dwoffinden on github.
  • I am dwoffinden (https://keybase.io/dwoffinden) on keybase.
  • I have a public key whose fingerprint is 46FC 889E BC38 100E 51E8 3245 F3EA 503B 360F BD40

To claim this, I am signing this object: