|
5 | 5 | ...
|
6 | 6 | }: let
|
7 | 7 | vi = import ./../pub/vi/nix/default.nix {};
|
| 8 | + dns = ["8.8.8.8" "8.8.4.4"]; |
8 | 9 | unst = import ./nixpkgs-unstable.nix;
|
9 | 10 | # xkb = pkgs.writeText "xkb-layout" (builtins.readFile ./../cfg/.Xmodmap);
|
10 | 11 | # yewtube = import ./yewtube.nix;
|
|
49 | 50 | "delfi.ee"
|
50 | 51 | "postimees.ee"
|
51 | 52 | "rumble.com"
|
52 |
| - "twitter.com" |
53 |
| - "twitch.tv" |
54 |
| - "discord.com" |
55 | 53 | "odysee.com"
|
56 | 54 | "bastyon.com"
|
57 | 55 | "bitchute.com"
|
58 |
| - "youtube.com" |
59 |
| - "facebook.com" |
60 |
| - # "telegram.org" |
61 |
| - # "t.me" |
62 | 56 | ]
|
63 | 57 | else []
|
64 | 58 | ));
|
@@ -380,6 +374,155 @@ in {
|
380 | 374 | jack.enable = true;
|
381 | 375 | };
|
382 | 376 |
|
| 377 | + # |
| 378 | + # Productivity |
| 379 | + # |
| 380 | + services.unbound.enable = config.services.functora.blockHosts; |
| 381 | + services.unbound.settings.server.interface = ["127.0.0.1"]; |
| 382 | + services.unbound.settings.server.port = 5335; |
| 383 | + services.adguardhome.enable = config.services.functora.blockHosts; |
| 384 | + services.adguardhome.mutableSettings = false; |
| 385 | + services.adguardhome.settings.dns.upstream_dns = ["127.0.0.1:5335"]; |
| 386 | + services.adguardhome.settings.dns.bootstrap_dns = dns; |
| 387 | + services.adguardhome.settings.filtering = { |
| 388 | + filtering_enabled = true; |
| 389 | + blocked_services.ids = [ |
| 390 | + "4chan" |
| 391 | + "500px" |
| 392 | + "9gag" |
| 393 | + "activision_blizzard" |
| 394 | + "aliexpress" |
| 395 | + "amazon_streaming" |
| 396 | + "amazon" |
| 397 | + "amino" |
| 398 | + "apple_streaming" |
| 399 | + "battle_net" |
| 400 | + "betano" |
| 401 | + "betfair" |
| 402 | + "betway" |
| 403 | + "bigo_live" |
| 404 | + "bilibili" |
| 405 | + "blaze" |
| 406 | + "blizzard_entertainment" |
| 407 | + "bluesky" |
| 408 | + "box" |
| 409 | + "claro" |
| 410 | + "cloudflare" |
| 411 | + "clubhouse" |
| 412 | + "coolapk" |
| 413 | + "crunchyroll" |
| 414 | + "dailymotion" |
| 415 | + "deezer" |
| 416 | + "directvgo" |
| 417 | + "discord" |
| 418 | + "discoveryplus" |
| 419 | + "disneyplus" |
| 420 | + "douban" |
| 421 | + "dropbox" |
| 422 | + "ebay" |
| 423 | + "electronic_arts" |
| 424 | + "epic_games" |
| 425 | + "espn" |
| 426 | + "facebook" |
| 427 | + "fifa" |
| 428 | + "flickr" |
| 429 | + "globoplay" |
| 430 | + "gog" |
| 431 | + "hbomax" |
| 432 | + "hulu" |
| 433 | + "icloud_private_relay" |
| 434 | + "iheartradio" |
| 435 | + "imgur" |
| 436 | + "instagram" |
| 437 | + "iqiyi" |
| 438 | + "kakaotalk" |
| 439 | + "kik" |
| 440 | + "kook" |
| 441 | + "lazada" |
| 442 | + "leagueoflegends" |
| 443 | + "line" |
| 444 | + "linkedin" |
| 445 | + "lionsgateplus" |
| 446 | + "looke" |
| 447 | + "mail_ru" |
| 448 | + "mastodon" |
| 449 | + "mercado_libre" |
| 450 | + "minecraft" |
| 451 | + "nebula" |
| 452 | + "netflix" |
| 453 | + "nintendo" |
| 454 | + "nvidia" |
| 455 | + "ok" |
| 456 | + "olvid" |
| 457 | + "onlyfans" |
| 458 | + "origin" |
| 459 | + "paramountplus" |
| 460 | + "pinterest" |
| 461 | + "playstation" |
| 462 | + "plenty_of_fish" |
| 463 | + "plex" |
| 464 | + "pluto_tv" |
| 465 | + "privacy" |
| 466 | + "qq" |
| 467 | + "rakuten_viki" |
| 468 | + "reddit" |
| 469 | + "riot_games" |
| 470 | + "roblox" |
| 471 | + "rockstar_games" |
| 472 | + "samsung_tv_plus" |
| 473 | + "shein" |
| 474 | + "shopee" |
| 475 | + "signal" |
| 476 | + "skype" |
| 477 | + "snapchat" |
| 478 | + # "soundcloud" |
| 479 | + "spotify" |
| 480 | + "steam" |
| 481 | + "telegram" |
| 482 | + "temu" |
| 483 | + "tidal" |
| 484 | + "tiktok" |
| 485 | + "tinder" |
| 486 | + "tumblr" |
| 487 | + "twitch" |
| 488 | + "twitter" |
| 489 | + "ubisoft" |
| 490 | + "valorant" |
| 491 | + "viber" |
| 492 | + "vimeo" |
| 493 | + "vk" |
| 494 | + "voot" |
| 495 | + "wargaming" |
| 496 | + "wechat" |
| 497 | + "weibo" |
| 498 | + "whatsapp" |
| 499 | + "wizz" |
| 500 | + "xboxlive" |
| 501 | + "xiaohongshu" |
| 502 | + "youtube" |
| 503 | + "yy" |
| 504 | + "zhihu" |
| 505 | + ]; |
| 506 | + blocked_services.schedule = let |
| 507 | + unBlock = { |
| 508 | + start = "20h"; |
| 509 | + end = "23h"; |
| 510 | + }; |
| 511 | + in { |
| 512 | + mon = unBlock; |
| 513 | + tue = unBlock; |
| 514 | + wed = unBlock; |
| 515 | + thu = unBlock; |
| 516 | + fri = unBlock; |
| 517 | + sat = unBlock; |
| 518 | + sun = unBlock; |
| 519 | + time_zone = "Local"; |
| 520 | + }; |
| 521 | + }; |
| 522 | + |
| 523 | + # |
| 524 | + # Keyboards |
| 525 | + # |
383 | 526 | hardware.keyboard.qmk.enable = true;
|
384 | 527 |
|
385 | 528 | #
|
|
513 | 656 | services.fail2ban.enable = true;
|
514 | 657 | services.tor.client.enable = true;
|
515 | 658 | networking.firewall.enable = true;
|
516 |
| - networking.nameservers = ["8.8.8.8" "8.8.4.4"]; |
| 659 | + networking.nameservers = dns; |
517 | 660 | virtualisation.virtualbox.host.enable = true;
|
518 | 661 | virtualisation.containers.enable = true;
|
519 | 662 | virtualisation.podman.enable = true;
|
|
0 commit comments