Commit 0e58f69f864a

Vincent Demeester <vincent@sbr.pm>
2019-02-01 17:11:19
honshu: try to use startAt instead of timer
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 8cbab35
Changed files (2)
machine/honshu.nix
@@ -39,6 +39,7 @@ vincent@synodine.local:/volume1/backup/drive/ /run/media/vincent/Toshito/backup/
     description = "vrsync - sync folders to NAS";
     wantedBy = [ "multi-user.target" ];
     restartIfChanged = false;
+    startAt = "daily";
     serviceConfig = {
       Type = "oneshot";
       ExecStart = "${pkgs.vrsync}/bin/vrsync";
@@ -46,20 +47,12 @@ vincent@synodine.local:/volume1/backup/drive/ /run/media/vincent/Toshito/backup/
       OnFailure = "status-email-root@%n.service";
     };
   };
-  systemd.timers.vrsync = {
-    description = "vrsync daily";
-    wantedBy = [ "timers.target" ];
-    timerConfig = {
-      OnCalendar = "daily";
-      Persistent = "true";
-    };
-  };
-  systemd.timers.vrsync.enable = true;
   # 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";
@@ -68,13 +61,4 @@ vincent@synodine.local:/volume1/backup/drive/ /run/media/vincent/Toshito/backup/
       OnFailure = "status-email-root@%n.service";
     };
   };
-  systemd.timers.ape = {
-    description = "Ape hourly";
-    wantedBy = [ "timers.target" ];
-    timerConfig = {
-      OnCalendar = "hourly";
-      Persistent = "true";
-    };
-  };
-  systemd.timers.ape.enable = true;
 }
machine/wakasu.nix
@@ -17,7 +17,10 @@ with import ../assets/machines.nix; {
     laptop.enable = true;
     nix-config.buildCores = 4;
     ssh.enable = true;
-    virtualization.enable = true;
+    virtualization = {
+      enable = true;
+      listenTCP = true;
+    };
   };
   programs = {
     podman.enable = true;