nix-configs/modules/net/hosts.nix
Schrottkatze 70e5b25e38
blargh
2026-03-28 17:23:29 +01:00

31 lines
547 B
Nix

{ lib, ... }:
let
domains = [
"tiktok.com"
"twitter.com"
"instagram.com"
"facebook.com"
"snapchat.com"
# "youtube.com"
"google-analytics.com"
"stats.g.doubleclick.net"
"googleadservices.com"
"googletagmanager.com"
"googletagservices.com"
"googlesyndication.com"
];
prefixes = [
"www."
""
];
in
{
networking.hosts =
let
withPrefixes = prefixes |> map (prefix: map (domain: prefix + domain) domains) |> lib.flatten;
in
{
"127.0.0.1" = withPrefixes;
};
}