Compare commits

...

2 Commits

Author SHA1 Message Date
k
506dfa7006 added dns adblock 2025-01-08 03:52:18 +00:00
k
783a477b62 formating 2025-01-08 02:46:27 +00:00
2 changed files with 43 additions and 3 deletions

View File

@ -18,7 +18,7 @@
blender blender
vesktop vesktop
spotify spotify
btop btop
zip zip
emacs30-pgtk emacs30-pgtk

View File

@ -5,8 +5,8 @@
}: { }: {
networking.firewall = { networking.firewall = {
enable = true; enable = true;
allowedTCPPorts = [80 443 22 26615 25565 24454]; allowedTCPPorts = [80 443 22 26615 25565 24454 8080 53];
allowedUDPPorts = [26615 25565 24454]; allowedUDPPorts = [26615 25565 24454 8080 53];
}; };
security.acme = { security.acme = {
@ -37,6 +37,46 @@
package = pkgs.ollama-intel; package = pkgs.ollama-intel;
}; };
crab-hole = {
enable = true;
settings = {
api = {
listen = "192.168.0.2";
port = 8080;
show_doc = true;
};
downstream = [
{
listen = "192.168.0.2";
port = 53;
protocol = "udp";
}
];
upstream = {
name_servers = [
{
protocol = "tls";
socket_addr = "[2606:4700:4700::1111]:853";
tls_dns_name = "1dot1dot1dot1.cloudflare-dns.com";
trust_nx_responses = false;
}
{
protocol = "tls";
socket_addr = "1.1.1.1:853";
tls_dns_name = "1dot1dot1dot1.cloudflare-dns.com";
trust_nx_responses = false;
}
];
};
blocklist.lists = [
"https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"
"https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt"
"https://raw.githubusercontent.com/anudeepND/blacklist/master/CoinMiner.txt"
"https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt"
];
};
};
gitea = { gitea = {
enable = true; enable = true;
settings = { settings = {