From 9242a3dfb5d58ea0553d86cef5c27d81f3f5b43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 2 Nov 2025 14:47:26 +0800 Subject: [PATCH] vanadium/connectivity: use /etc/hosts blocklist --- .../vanadium/nixos/connectivity.nix | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/nix/configurations/vanadium/nixos/connectivity.nix b/nix/configurations/vanadium/nixos/connectivity.nix index ab4aa177..1c20f9ae 100644 --- a/nix/configurations/vanadium/nixos/connectivity.nix +++ b/nix/configurations/vanadium/nixos/connectivity.nix @@ -74,6 +74,32 @@ }; }; + networking = { + hostFiles = [ + # Prevent building up reliance on chatbots + # Gotta preserve that thinking ability of my smoof bwain + "${pkgs.ai_blocklist}/share/hosts.txt" + "${pkgs.hategroup_blocklist}/share/hosts.txt" + + # TODO: extraHosts option is overwritten by this + # We should emit a warning because it trips me up and it shouldn't >:( + (pkgs.writeText "etc-extra-hosts" '' + # + # Generated from nixos configuartion + # + + # This is the fascist one, just block it because I can't tell + nixos.wiki + + # Gotta purify my smoos brain for a while + 0.0.0.0 instagram.com + 0.0.0.0 www.instagram.com + 0.0.0.0 youtube.com + 0.0.0.0 www.youtube.com + '') + ]; + }; + services.mullvad-vpn.enable = true; hardware.bluetooth.enable = true;