Commit 3f878a92c8a1

Vincent Demeester <vincent@sbr.pm>
2026-02-13 10:23:12
refactor(passage): move auto-sync service to common
Moved daily passage git pull service and timer from aomi into the shared passage.nix module so all desktop hosts (kyushu, okinawa, aomi) benefit from automatic sync.
1 parent 9bfc002
Changed files (2)
home
common
systems
home/common/desktop/passage.nix
@@ -8,4 +8,30 @@
   home.packages = with pkgs; [
     passage
   ];
+
+  # Daily passage password store sync
+  systemd.user.services.passage-update = {
+    Unit = {
+      Description = "Update passage password store";
+    };
+    Service = {
+      Type = "oneshot";
+      ExecStart = "${pkgs.passage}/bin/passage git pull --rebase";
+      WorkingDirectory = config.home.sessionVariables.PASSAGE_DIR;
+    };
+  };
+
+  systemd.user.timers.passage-update = {
+    Unit = {
+      Description = "Daily passage password store update";
+    };
+    Timer = {
+      OnCalendar = "daily";
+      Persistent = true;
+      RandomizedDelaySec = "1h";
+    };
+    Install = {
+      WantedBy = [ "timers.target" ];
+    };
+  };
 }
systems/aomi/home.nix
@@ -38,29 +38,4 @@
     lazygit
   ];
 
-  # Passage update service and timer
-  systemd.user.services.passage-update = {
-    Unit = {
-      Description = "Update passage password store";
-    };
-    Service = {
-      Type = "oneshot";
-      ExecStart = "${pkgs.passage}/bin/passage git pull --rebase";
-      WorkingDirectory = config.home.sessionVariables.PASSAGE_DIR;
-    };
-  };
-
-  systemd.user.timers.passage-update = {
-    Unit = {
-      Description = "Daily passage password store update";
-    };
-    Timer = {
-      OnCalendar = "daily";
-      Persistent = true;
-      RandomizedDelaySec = "1h";
-    };
-    Install = {
-      WantedBy = [ "timers.target" ];
-    };
-  };
 }