Commit 8c7341ab98ae

Vincent Demeester <vincent@sbr.pm>
2019-04-14 16:49:50
okinawa: migrate ape service from honshu
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9bd92ca
Changed files (2)
machine/honshu.nix
@@ -46,18 +46,4 @@ with import ../assets/machines.nix; {
       OnFailure = "status-email-root@%n.service";
     };
   };
-  # ape – sync git mirrors
-  systemd.services.ape = {
-    description = "Ape - sync git mirrors";
-    wantedBy = [ "multi-user.target" ];
-    restartIfChanged = false;
-    startAt = "hourly";
-    serviceConfig = {
-      Type = "oneshot";
-      User = "vincent";
-      ExecStart = "${pkgs.nur.repos.vdemeester.ape}/bin/ape up /home/vincent/var/mirrors/";
-      Environment = "PATH=/run/current-system/sw/bin/";
-      OnFailure = "status-email-root@%n.service";
-    };
-  };
 }
machine/okinawa.nix
@@ -99,4 +99,18 @@ with import ../assets/machines.nix; {
       endpointPublicKey = wireguard.kerkouane.publicKey;
     };
   };
+  # ape – sync git mirrors
+  systemd.services.ape = {
+    description = "Ape - sync git mirrors";
+    wantedBy = [ "multi-user.target" ];
+    restartIfChanged = false;
+    startAt = "hourly";
+    serviceConfig = {
+      Type = "oneshot";
+      User = "vincent";
+      ExecStart = "${pkgs.nur.repos.vdemeester.ape}/bin/ape up /home/vincent/var/mirrors/";
+      Environment = "PATH=/run/current-system/sw/bin/";
+      OnFailure = "status-email-root@%n.service";
+    };
+  };
 }