Added domain blocklist

This commit is contained in:
Emmet 2023-06-17 22:48:58 -05:00
parent 4c9c47db75
commit b07059c311
3 changed files with 44 additions and 21 deletions

View file

@ -2,8 +2,9 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, myTheme, myBackgroundUrl, myBackgroundSha256, ... }:
{ config, lib, pkgs, blocklist-hosts, myTheme, myBackgroundUrl, myBackgroundSha256, ... }:
let blocklist = builtins.readFile "${blocklist-hosts}/alternates/gambling-porn/hosts";
in
{
imports =
[ ./hardware-configuration.nix
@ -56,9 +57,9 @@
networking.hostName = "snowfire"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
networking.extraHosts = ''
"${blocklist}"
'';
# Enable networking
networking.networkmanager.enable = true;