From 580646e6442352bb581cdd8a7bba6b15456d526e Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Tue, 2 May 2023 21:59:03 +0200 Subject: block some crap, see https://github.com/StevenBlack/hosts#nixos --- common.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common.nix') diff --git a/common.nix b/common.nix index 70ae589..fe0349e 100644 --- a/common.nix +++ b/common.nix @@ -130,6 +130,12 @@ in StateDirectory = "dnscrypt-proxy"; }; + # block some crap, see https://github.com/StevenBlack/hosts#nixos + networking.extraHosts = let + hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts; + hostsFile = builtins.fetchurl hostsPath; + in builtins.readFile "${hostsFile}"; + # swap to RAM zramSwap.enable = true; -- cgit v1.2.3