Revert "Set up CGM repository"

This commit is contained in:
2024-07-16 19:02:25 +02:00
parent 8d6ec59a29
commit 9d600f8c95
6 changed files with 29 additions and 58 deletions

View File

@@ -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}
'';