about summary refs log tree commit diff
path: root/modules/internet.nix
blob: 79365ca3a6725902b387d4896e2551df12cae84b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
## Basic rules for interacting with the internet
{ pkgs, ... }:
{
  networking.nameservers = [
    "1.1.1.1"
    "8.8.8.8"
  ];


  networking.extraHosts = "${ pkgs.stdenv.lib.readFile "${pkgs.fetchurl {
    url = "https://raw.githubusercontent.com/StevenBlack/hosts/5a5016ab5bf0166e004147cb49ccd0114ed29b72/alternates/fakenews-gambling-porn/hosts";
    sha256 = "1c60fyzxz89bic6ymcvb8fcanyxpzr8v2z5vixxr79d8mj0vjswm";
  }}"}";
}