Skip to content

Commit

Permalink
block fakenews, gambling, porn, social
Browse files Browse the repository at this point in the history
  • Loading branch information
jethrokuan committed May 6, 2018
1 parent 2c2ead3 commit edfb7ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions base.nix
Expand Up @@ -11,6 +11,7 @@

# Modules
./modules/system-util.nix
./modules/networking.nix
./modules/fonts.nix
./modules/redshift.nix
./modules/shells.nix
Expand Down
8 changes: 8 additions & 0 deletions modules/networking.nix
@@ -0,0 +1,8 @@
{config, pkgs, ...}:

{
config.networking.extraHosts = builtins.readFile (pkgs.fetchurl {
url = "https://github.com/StevenBlack/hosts/raw/aa60fb8642ae67da35f3004cd2a6dbe9c64ce9fe/alternates/fakenews-gambling-porn-social/hosts";
sha256 = "1rf4823nkg95r1hlrhgfash1p0g7lz8c9zfgs5axqbjh1jqqq9w3";
});
}

1 comment on commit edfb7ef

@tilpner
Copy link

@tilpner tilpner commented on edfb7ef May 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ config, pkgs, ... }: {
  networking.extraHosts = builtins.readFile (pkgs.fetchurl {
    url = https://github.com/StevenBlack/hosts/raw/aa60fb8642ae67da35f3004cd2a6dbe9c64ce9fe/alternates/fakenews-gambling-porn-social/hosts;
    sha256 = "1rf4823nkg95r1hlrhgfash1p0g7lz8c9zfgs5axqbjh1jqqq9w3";
  });
}

Please sign in to comment.