Commit fe4b557d4096

Vincent Demeester <vincent@sbr.pm>
2017-02-10 22:06:44
Move ape service/timer to the cloud (carthage)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent cb31bd7
Changed files (2)
machine/carthage.nix
@@ -20,4 +20,23 @@
 	];
 	time.timeZone = "Europe/Paris";
 
+	# ape – sync git mirrors
+	systemd.user.services.ape = {
+		description = "Ape - sync git mirrors";
+		wantedBy = [ "multi-user.target" ];
+		serviceConfig = {
+			Type = "oneshot";
+			ExecStart = "${pkgs.ape}/bin/ape up /home/vincent/mirrors/";
+			Environment = "PATH=/run/current-system/sw/bin/";
+		};
+	};
+	systemd.user.timers.ape = {
+		description = "Ape hourly";
+		wantedBy = [ "timers.target" ];
+		timerConfig = {
+			OnCalendar = "hourly";
+			Persistent = "true";
+		};
+	};
+	systemd.user.timers.ape.enable = true;
 }
machine/kobe.nix
@@ -37,23 +37,4 @@
 	environment.systemPackages = with pkgs; [
 		ape
 	];
-	# ape – sync git mirrors
-	systemd.user.services.ape = {
-		description = "Ape - sync git mirrors";
-		wantedBy = [ "multi-user.target" ];
-		serviceConfig = {
-			Type = "oneshot";
-			ExecStart = "${pkgs.ape}/bin/ape up /home/vincent/mirrors/";
-			Environment = "PATH=/run/current-system/sw/bin/";
-		};
-	};
-	systemd.user.timers.ape = {
-		description = "Ape hourly";
-		wantedBy = [ "timers.target" ];
-		timerConfig = {
-			OnCalendar = "hourly";
-			Persistent = "true";
-		};
-	};
-	systemd.user.timers.ape.enable = true;
 }