Skip to content

Instantly share code, notes, and snippets.

@jethrokuan
Created September 23, 2018 06:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jethrokuan/b94078fc721472f1ca96ad0a9132a361 to your computer and use it in GitHub Desktop.
Save jethrokuan/b94078fc721472f1ca96ad0a9132a361 to your computer and use it in GitHub Desktop.
Hosts file
{pkgs, ...}:
let
hostsVersion = "1553048103e57638ae653843ae1b8258ece1423a";
in
{
networking.networkmanager.enable = true;
networking.extraHosts = builtins.readFile (pkgs.fetchurl {
url = "https://github.com/StevenBlack/hosts/raw/${hostsVersion}/alternates/fakenews-gambling-porn/hosts";
sha256 = "0i10vdfpk98ddld6z6z32bw6q1wd0a7p2ayr1hrpckl6zckfrmn3";
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment