mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2026-04-15 06:13:58 +02:00
blargh
This commit is contained in:
parent
63d865be00
commit
70e5b25e38
19 changed files with 286 additions and 236 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue