chore: refactor restic
This commit is contained in:
parent
e259c84ab9
commit
2037200238
1 changed files with 8 additions and 4 deletions
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue