chore: refactor restic

This commit is contained in:
gwg313 2024-01-05 21:57:09 -05:00
parent e259c84ab9
commit 2037200238
Signed by: gwg313
GPG key ID: 60FF63B4826B7400

View file

@ -1,11 +1,15 @@
{...}: {
{
config,
user,
...
}: {
services.restic.backups = {
backups = {
user = "gwg313";
user = "${user}";
repository = "/backups";
initialize = true;
passwordFile = "/home/gwg313/restic.txt";
paths = ["/home/gwg313/Projects" "/home/gwg313/Documents" "/home/gwg313/.local/share/password-store" "/home/gwg313/.local/share/buku"];
passwordFile = "${config.sops.secrets.restic_key.path}";
paths = ["/home/${user}/Projects" "/home/${user}/Documents" "/home/${user}/.local/share/password-store" "/home/${user}/.local/share/buku"];
timerConfig = {
onCalendar = "saturday 23:00";
};