From cf92814f1d7d82030a52e2d4c4c2e24d4b0e2341 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 8 Jul 2020 18:16:28 +0300 Subject: [PATCH] Update readme_template.md --- readme_template.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/readme_template.md b/readme_template.md index 00f12807f..954be6fb2 100644 --- a/readme_template.md +++ b/readme_template.md @@ -1,7 +1,8 @@ ---- **Take Note!** -- This version of the Hosts file generator, and tests, are for Python 3.5+ only. -- With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory. + +* This version of the Hosts file generator, and tests, are for Python 3.5+ only. +* With the exception of issues and PRs regarding changes to `hosts/data/StevenBlack/hosts`, all other issues regarding the content of the produced hosts files should be made with the appropriate data source that contributed the content in question. The contact information for all of the data sources can be found in the `hosts/data/` directory. ---- ![Logo](https://raw.githubusercontent.com/StevenBlack/hosts/master/.github/logo.png) @@ -155,15 +156,18 @@ to remove hosts from the generated hosts file. #### Using NixOS: To install hosts file on your machine add the following into your `configuration.nix`: -```haskell - networking.extraHosts = let + +```nix +{ + networking.extraHosts = let hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts; hostsFile = builtins.fetchurl hostsPath; in builtins.readFile "${hostsFile}"; +} ``` -* NOTE: Change `hostsPath` if you need other versions of hosts file. -* NOTE: The call to `fetchurl` is impure. +* NOTE: Change `hostsPath` if you need other versions of hosts file. +* NOTE: The call to `fetchurl` is impure. Use `fetchFromGitHub` with the exact commit if you want to always get the same result.