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 = {
|
services.restic.backups = {
|
||||||
backups = {
|
backups = {
|
||||||
user = "gwg313";
|
user = "${user}";
|
||||||
repository = "/backups";
|
repository = "/backups";
|
||||||
initialize = true;
|
initialize = true;
|
||||||
passwordFile = "/home/gwg313/restic.txt";
|
passwordFile = "${config.sops.secrets.restic_key.path}";
|
||||||
paths = ["/home/gwg313/Projects" "/home/gwg313/Documents" "/home/gwg313/.local/share/password-store" "/home/gwg313/.local/share/buku"];
|
paths = ["/home/${user}/Projects" "/home/${user}/Documents" "/home/${user}/.local/share/password-store" "/home/${user}/.local/share/buku"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
onCalendar = "saturday 23:00";
|
onCalendar = "saturday 23:00";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue