acme: Back up SSL certificates

This commit is contained in:
Tristan Daniël Maat 2024-03-12 05:58:36 +01:00
parent fa73574dba
commit cf02da0d00
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -50,4 +50,11 @@
defaults.email = "tm@tlater.net"; defaults.email = "tm@tlater.net";
acceptTerms = true; acceptTerms = true;
}; };
services.backups.acme = {
user = "acme";
paths =
lib.mapAttrsToList (virtualHost: _: "/var/lib/acme/${virtualHost}")
config.services.nginx.virtualHosts;
};
} }