From fb94b8f1860ba09d892ce7a85e6b90ac103ab410 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 13 Dec 2020 11:53:51 +0100 Subject: Add x220 config --- modules/internet.nix | 14 ++++++++++++++ modules/nur.nix | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 modules/internet.nix (limited to 'modules') 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"; + }}"}"; +} diff --git a/modules/nur.nix b/modules/nur.nix index c8326e9..a4c3449 100755 --- a/modules/nur.nix +++ b/modules/nur.nix @@ -6,4 +6,8 @@ inherit pkgs; }; }; + nix.binaryCaches = [ + "https://cache.nixos.org" + "https://pn.cachix.org" + ]; } -- cgit 1.4.1