mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
Adguard firewall
This commit is contained in:
parent
f7bdc39860
commit
103c804ac2
1 changed files with 18 additions and 7 deletions
|
|
@ -1,9 +1,15 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = {
|
||||
services.adguardhome = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
http = {
|
||||
address = "127.0.0.1:3003";
|
||||
|
|
@ -22,13 +28,18 @@
|
|||
enabled = false;
|
||||
};
|
||||
};
|
||||
filters = lib.map (url: { enabled = true; url = url; }) [
|
||||
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_9.txt"
|
||||
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_11.txt"
|
||||
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt"
|
||||
];
|
||||
filters =
|
||||
lib.map
|
||||
(url: {
|
||||
enabled = true;
|
||||
url = url;
|
||||
})
|
||||
[
|
||||
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_9.txt"
|
||||
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_11.txt"
|
||||
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue