Remove cainiao from DNS blocklist
This commit is contained in:
parent
f60d776fc6
commit
bc5c561775
|
@ -17,9 +17,11 @@ in {
|
||||||
systemd.services.download-dns-blocklist = {
|
systemd.services.download-dns-blocklist = {
|
||||||
description = "Download hosts-blocklists";
|
description = "Download hosts-blocklists";
|
||||||
wantedBy = [ "default.target" ];
|
wantedBy = [ "default.target" ];
|
||||||
path = with pkgs; [ curl ];
|
path = with pkgs; [ curl coreutils ];
|
||||||
script =
|
script = ''
|
||||||
"curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}";
|
curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}
|
||||||
|
sed "/cainiao/d" -i ${blocklist}
|
||||||
|
'';
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
postStop = ''
|
postStop = ''
|
||||||
chown -R dnsmasq ${stateDir}
|
chown -R dnsmasq ${stateDir}
|
||||||
|
|
Loading…
Reference in New Issue