diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-03 17:23:34 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-03-03 17:23:34 +0100 |
commit | 88c012006011f465b99db1cec5e66b1afde5312e (patch) | |
tree | a1828ed115d78c128f858b07fa44821905bd8b8b /machines | |
parent | e01eac210ada6f2e8874b76053d3f2ddb19e5605 (diff) | |
download | dots-88c012006011f465b99db1cec5e66b1afde5312e.tar.gz dots-88c012006011f465b99db1cec5e66b1afde5312e.zip |
Make srv1 pihole
Diffstat (limited to 'machines')
-rw-r--r-- | machines/srv1/configuration.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix index a54597c..362423a 100644 --- a/machines/srv1/configuration.nix +++ b/machines/srv1/configuration.nix @@ -23,6 +23,11 @@ in 192.168.1.136 srv1.niedzwiedzinski.cyou git.niedzwiedzinski.cyou tmp.niedzwiedzinski.cyou ''; + networking.extraHosts = pkgs.stdenv.lib.readFile ( pkgs.fetchurl { + url = "https://raw.githubusercontent.com/StevenBlack/hosts/d2be343994aacdec74865ff8d159cf6e46359adf/alternates/fakenews-gambling-porn/hosts"; + sha256 = "1la5rd0znc25q8yd1iwbx22zzqi6941vyzmgar32jx568j856s8j"; + } ); + services.dnsmasq = { enable = true; servers = [ "1.1.1.1" "8.8.8.8" ]; |