nixos-config/system/security/blocklist.nix

10 lines
189 B
Nix

{ config, blocklist-hosts, pkgs, ... }:
let blocklist = builtins.readFile "${blocklist-hosts}/alternates/gambling-porn/hosts";
in
{
networking.extraHosts = ''
"${blocklist}"
'';
}