nixos-config/system/security/blocklist.nix

10 lines
175 B
Nix

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