18 cfg = config.networking.stevenblack;
21 options.networking.stevenblack = {
22 enable = mkEnableOption "the stevenblack hosts file blocklist";
24 package = mkPackageOption pkgs "stevenblack-blocklist" { };
36 description = "Additional blocklist extensions.";
40 config = mkIf cfg.enable {
41 networking.hostFiles = map (x: "${getOutput x cfg.package}/hosts") ([ "ads" ] ++ cfg.block);
44 meta.maintainers = with maintainers; [