Clean up the restic-server-client config

This commit is contained in:
Andreas Zweili 2022-08-17 22:22:21 +02:00
parent 0a4f46244e
commit 8573054568

View File

@ -19,18 +19,16 @@
};
script = ''
${pkgs.restic}/bin/restic backup \
--exclude-file=${inputs.self}/modules/restic/excludes.txt \
--tag home-dir \
/home/${custom.username} \
--exclude-file=${inputs.self}/modules/restic/excludes.txt \
--tag home-dir /home/${custom.username}
${pkgs.restic}/bin/restic \
forget \
--tag home-dir
${pkgs.restic}/bin/restic forget \
--tag home-dir \
--host ${config.networking.hostName} \
--keep-daily 7 \
--keep-weekly 5 \
--keep-monthly 12 \
--keep-yearly 75 \
--keep-yearly 75
'';
};
}