Revert "Set up CGM repository"
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
stateDir = "/var/lib/dnscrypt-proxy";
|
||||
blocklist = "${stateDir}/blocklist.txt";
|
||||
|
||||
in {
|
||||
in
|
||||
{
|
||||
# PostgreSQL daily backups
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
@@ -18,7 +24,10 @@ in {
|
||||
systemd.services.download-dns-blocklist = {
|
||||
description = "Download hosts-blocklists";
|
||||
wantedBy = [ "default.target" ];
|
||||
path = with pkgs; [ curl coreutils ];
|
||||
path = with pkgs; [
|
||||
curl
|
||||
coreutils
|
||||
];
|
||||
script = ''
|
||||
curl -L https://download.dnscrypt.info/blacklists/domains/mybase.txt -o ${blocklist}
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user