Encrypted DNS: Difference between revisions

m Typo
mNo edit summary
Line 72: Line 72:
=== Blocklist ===
=== Blocklist ===


Add a blocklist repo (e.g. oisd) as a flake input:<syntaxhighlight lang="nix">
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 = "github:sjhgvr/oisd";
       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 "${inputs.oisd}/domainswild_big.txt";
   blocklist_base = builtins.readFile inputs.oisd;
   extraBlocklist = '''';
   extraBlocklist = '''';
   blocklist_txt = pkgs.writeText "blocklist.txt" ''
   blocklist_txt = pkgs.writeText "blocklist.txt" ''