Commit 650a60439517

Vincent Demeester <vincent@sbr.pm>
2018-09-09 18:13:32
Add vrsync service and timer for honshu
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent ded88ef
Changed files (1)
machine
machine/honshu.nix
@@ -29,6 +29,25 @@
     };
   };
 
+  systemd.services.vrsync = {
+    description = "vrsync - sync folders to NAS";
+    wantedBy = [ "multi-user.target" ];
+    serviceConfig = {
+      Type = "oneshot";
+      ExecStart = "${pkgs.vrsync}/bin/vrsync --dry-run";
+      Environment = "PATH=/run/current-system/sw/bin";
+    };
+  };
+  systemd.timers.vrsync = {
+    description = "vrsync hourly";
+    wantedBy = [ "timers.target" ];
+    timerConfig = {
+      OnCalendar = "hourly";
+      Persistent = true";"
+    };
+  };
+  # systemd.timers.vrsync.enable = true;
+
   networking.enableIPv6 = false;
   networking.firewall.allowedTCPPorts = [ 3389 2375 ];
 }