about summary refs log tree commit diff
path: root/modules/internet.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-12-13 11:53:51 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-12-13 11:53:51 +0100
commitfb94b8f1860ba09d892ce7a85e6b90ac103ab410 (patch)
treeb1221ab020fdf790559ee3a07f2b424ca1c30208 /modules/internet.nix
parent0b0dde69f51d577cabc8bbc399794e573c080e33 (diff)
downloaddots-fb94b8f1860ba09d892ce7a85e6b90ac103ab410.tar.gz
dots-fb94b8f1860ba09d892ce7a85e6b90ac103ab410.zip
Add x220 config
Diffstat (limited to 'modules/internet.nix')
-rw-r--r--modules/internet.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/internet.nix b/modules/internet.nix
new file mode 100644
index 0000000..79365ca
--- /dev/null
+++ b/modules/internet.nix
@@ -0,0 +1,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";
+  }}"}";
+}