mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-04-13 13:32:09 +02:00
31 lines
547 B
Nix
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;
|
|
};
|
|
}
|