https://github.com/fps/nixos-addblock-hosts
A nixos configuration file that you can import from configuration.nix to block common ad/tracker hosts
https://github.com/fps/nixos-addblock-hosts
Last synced: 3 days ago
JSON representation
A nixos configuration file that you can import from configuration.nix to block common ad/tracker hosts
- Host: GitHub
- URL: https://github.com/fps/nixos-addblock-hosts
- Owner: fps
- Created: 2015-09-28T21:29:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T22:47:26.000Z (over 10 years ago)
- Last Synced: 2023-03-11T07:42:18.158Z (almost 3 years ago)
- Language: Nix
- Size: 227 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nixos-addblock-hosts
A nixos configuration file that you can import from configuration.nix to block common ad/tracker hosts
Download hosts.nix to /etc/nixos/hosts.nix and add it as import to your /etc/nixos/configuration.nix like this (example):
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./hosts.nix
];
...
Also note this comment from the top of the original hosts file:
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.