From af510c71e237849cb59341812945e991e35af133 Mon Sep 17 00:00:00 2001 From: James Eversole Date: Tue, 25 Jul 2023 11:58:14 -0500 Subject: [PATCH] Add sezycei to nginx group; block Lobsters and HN --- nix/system/dns.nix | 18 ++++++++++++++++++ nix/user/users.nix | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/nix/system/dns.nix b/nix/system/dns.nix index 5fb3876..5e48fe5 100644 --- a/nix/system/dns.nix +++ b/nix/system/dns.nix @@ -40,6 +40,24 @@ } } + lobste.rs { + template IN A { + answer "{{ .Name }} 0 IN A 127.0.0.1" + } + } + + ycombinator.com { + template IN A { + answer "{{ .Name }} 0 IN A 127.0.0.1" + } + } + + *.ycombinator.com { + template IN A { + answer "{{ .Name }} 0 IN A 127.0.0.1" + } + } + . { forward . 9.9.9.9 149.112.112.112 84.200.69.80 84.200.70.40 cache diff --git a/nix/user/users.nix b/nix/user/users.nix index a304342..93f4592 100644 --- a/nix/user/users.nix +++ b/nix/user/users.nix @@ -6,7 +6,7 @@ sezycei = { isNormalUser = true; passwordFile = config.age.secrets.sezycei.path; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "nginx" ]; packages = with pkgs; [ byobu tmux stack ]; }; torrent = { isNormalUser = true; };