mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-11-23 02:36:02 +01:00
35 lines
601 B
Nix
35 lines
601 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"
|
|
|
|
"treehouse.systems"
|
|
"nekover.se"
|
|
];
|
|
prefixes = [
|
|
"www."
|
|
"social."
|
|
""
|
|
];
|
|
in
|
|
{
|
|
networking.hosts =
|
|
let
|
|
withPrefixes = prefixes |> map (prefix: map (domain: prefix + domain) domains) |> lib.flatten;
|
|
in
|
|
{
|
|
"127.0.0.1" = withPrefixes;
|
|
};
|
|
}
|