vanadium/connectivity: use /etc/hosts blocklist

This commit is contained in:
Primrose 2025-11-02 14:47:26 +08:00
parent 2ec26ff49e
commit 9242a3dfb5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -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;