ctucx.git: nixfiles

ctucx' nixfiles

commit 5b4b57421df555867ef52dcc340c1f85dfce72b7
parent ba9df59d244de019c86acc90df89a53656aa0093
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 23 Feb 2023 18:54:35 +0100

configurations/common/programs/scripts: update lollo-backup script
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/configurations/common/programs/scripts.nix b/configurations/common/programs/scripts.nix
@@ -79,7 +79,7 @@ let
     function copyResticRepos {
       printStep "Copying /var/lib/restic to the backup-drive";
 
-      ${pkgs.rsync}/bin/rsync -ah --partial --delete --info=progress2 /var/lib/restic/ /mnt/backup/restic-servers/;
+      ${pkgs.rsync}/bin/rsync -ah --partial --delete --info=progress2 /nix/persist/var/lib/restic/ /mnt/backup/restic-servers/;
       sync;
 
       printEnd;

@@ -125,16 +125,16 @@ let
     copyResticRepos;
 
     #restic backups
-    resticBackupFolder audiobooks /home/leah/syncthing/Audiobooks;
-    resticBackupFolder bahn-richtlinien /home/leah/syncthing/Bahn-Richtlinien;
-    resticBackupFolder cutieshare /home/leah/syncthing/Cutieshare;
-    resticBackupFolder documents /home/leah/syncthing/Documents;
-    resticBackupFolder media-legacy /home/leah/syncthing/Media\ \(legacy\);
-    resticBackupFolder music /home/leah/syncthing/Music;
-    resticBackupFolder music-originals /home/leah/syncthing/Music\ \(Originals\);
-    resticBackupFolder pictures /home/leah/syncthing/Pictures;
-    resticBackupFolder videos /home/leah/syncthing/Videos;
-    resticBackupFolder wiki /home/leah/syncthing/Wiki;
+    resticBackupFolder audiobooks /nix/persist/home/leah/syncthing/Audiobooks;
+    resticBackupFolder bahn-richtlinien /nix/persist/home/leah/syncthing/Bahn-Richtlinien;
+    resticBackupFolder cutieshare /nix/persist/home/leah/syncthing/Cutieshare;
+    resticBackupFolder documents /nix/persist/home/leah/syncthing/Documents;
+    resticBackupFolder media-legacy /nix/persist/home/leah/syncthing/Media\ \(legacy\);
+    resticBackupFolder music /nix/persist/home/leah/syncthing/Music;
+    resticBackupFolder music-originals /nix/persist/home/leah/syncthing/Music\ \(Originals\);
+    resticBackupFolder pictures /nix/persist/home/leah/syncthing/Pictures;
+    resticBackupFolder videos /nix/persist/home/leah/syncthing/Videos;
+    resticBackupFolder wiki /nix/persist/home/leah/syncthing/Wiki;
   '';
 
 in {