Encrypted DNS: Difference between revisions
m Typo |
mNo edit summary |
||
| Line 72: | Line 72: | ||
=== Blocklist === | === Blocklist === | ||
Fetch a blocklist file (e.g. oisd) as a flake input:<syntaxhighlight lang="nix"> | |||
# flake.nix | # flake.nix | ||
| Line 78: | Line 78: | ||
inputs = { | inputs = { | ||
oisd = { | oisd = { | ||
url = " | url = "https://big.oisd.nl/domainswild"; | ||
flake = false; | flake = false; | ||
}; | }; | ||
| Line 94: | Line 94: | ||
{ config, lib, pkgs, inputs, ... }: | { config, lib, pkgs, inputs, ... }: | ||
let | let | ||
blocklist_base = builtins.readFile | blocklist_base = builtins.readFile inputs.oisd; | ||
extraBlocklist = ''''; | extraBlocklist = ''''; | ||
blocklist_txt = pkgs.writeText "blocklist.txt" '' | blocklist_txt = pkgs.writeText "blocklist.txt" '' | ||