Remove cainiao from DNS blocklist

This commit is contained in:
coolneng 2022-10-23 10:47:58 +02:00
parent f60d776fc6
commit bc5c561775
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 5 additions and 3 deletions

View File

@ -17,9 +17,11 @@ in {
systemd.services.download-dns-blocklist = {
description = "Download hosts-blocklists";
wantedBy = [ "default.target" ];
path = with pkgs; [ curl ];
script =
"curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}";
path = with pkgs; [ curl coreutils ];
script = ''
curl -L https://github.com/notracking/hosts-blocklists/raw/master/dnsmasq/dnsmasq.blacklist.txt -o ${blocklist}
sed "/cainiao/d" -i ${blocklist}
'';
serviceConfig.Type = "oneshot";
postStop = ''
chown -R dnsmasq ${stateDir}