This commit is contained in:
Schrottkatze 2026-03-28 17:23:29 +01:00
commit 70e5b25e38
No known key found for this signature in database
19 changed files with 286 additions and 236 deletions

View file

@ -1,26 +1,31 @@
{ ... }:
{ 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 = {
"127.0.0.1" = [
"www.tiktok.com"
"www.twitter.com"
"www.instagram.com"
"www.facebook.com"
"www.snapchat.com"
"tiktok.com"
"twitter.com"
"instagram.com"
"facebook.com"
"snapchat.com"
"lovense.com"
"google-analytics.com"
"stats.g.doubleclick.net"
"googleadservices.com"
"googletagmanager.com"
"googletagservices.com"
"googlesyndication.com"
];
};
networking.hosts =
let
withPrefixes = prefixes |> map (prefix: map (domain: prefix + domain) domains) |> lib.flatten;
in
{
"127.0.0.1" = withPrefixes;
};
}