diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-05-02 21:59:03 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-05-02 21:59:03 +0200 |
commit | 580646e6442352bb581cdd8a7bba6b15456d526e (patch) | |
tree | 3ea06f052f6a7fe165a94802fe02e72f6dfe88ec | |
parent | e522dfefd3771922a53b451f66dab3dd74cf6461 (diff) |
block some crap, see https://github.com/StevenBlack/hosts#nixos
-rw-r--r-- | common.nix | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |