Commit c44bee424bb3

Vincent Demeester <vincent@sbr.pm>
2019-07-10 10:53:45
machine: move vrsync from okinawa to hokkaido
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 181bb0a
Changed files (2)
machine/hokkaido.nix
@@ -36,9 +36,11 @@ with import ../assets/machines.nix; {
   };
   # -----------------------------------
   environment.etc."vrsync".text = ''
-/home/vincent/desktop/pictures/screenshots/ vincent@synodine.local:/volumeUSB2/usbshare/pictures/screenshots/
-/home/vincent/desktop/pictures/wallpapers/ vincent@synodine.local:/volumeUSB2/usbshare/pictures/wallpapers/
-/home/vincent/desktop/documents/ vincent@synodine.local:/volume1/documents/
+/home/vincent/desktop/pictures/screenshots/ vincent@synodine.home:/volumeUSB2/usbshare/pictures/screenshots/
+/home/vincent/desktop/pictures/wallpapers/ vincent@synodine.home:/volumeUSB2/usbshare/pictures/wallpapers/
+/home/vincent/desktop/documents/ vincent@synodine.home:/volume1/documents/
+/mnt/Toshito/photos/ vincent@synodine.home:/volumeUSB2/usbshare/pictures/photos/
+/mnt/Toshito/music/ vincent@synodine.home:/volumeUSB2/usbshare/music/
   '';
   systemd.services.vrsync = {
     description = "vrsync - sync folders to NAS";
machine/okinawa.nix
@@ -91,28 +91,4 @@ with import ../assets/machines.nix; {
     };
   };
   security.apparmor.enable = true;
-  # -----------------------------------
-  environment.etc."vrsync".text = ''
-/mnt/nyan/photos/ vincent@synodine.local:/volumeUSB2/usbshare/pictures/photos/
-/mnt/nyan/music/ vincent@synodine.local:/volumeUSB2/usbshare/music/
-  '';
-  systemd.services.vrsync = {
-    description = "vrsync - sync folders to NAS";
-    requires = [ "network-online.target" ];
-    after    = [ "network-online.target" ];
-
-    unitConfig.X-StopOnRemoval = false;
-    restartIfChanged = false;
-
-    path = with pkgs; [ rsync coreutils bash openssh ];
-    script = ''
-    ${pkgs.vrsync}/bin/vrsync
-    '';
-
-    startAt = "hourly";
-    serviceConfig = {
-      Type = "oneshot";
-      OnFailure = "status-email-root@%n.service";
-    };
-  };
 }