about summary refs log tree commit diff
path: root/users/fcuny/desktop
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/desktop/trust/pass.nix30
1 files changed, 3 insertions, 27 deletions
diff --git a/users/fcuny/desktop/trust/pass.nix b/users/fcuny/desktop/trust/pass.nix
index d9c9010..6ed346c 100644
--- a/users/fcuny/desktop/trust/pass.nix
+++ b/users/fcuny/desktop/trust/pass.nix
@@ -11,32 +11,8 @@
     };
   };
 
-  systemd.user.services.git-password-store = {
-    Unit = {
-      Description = "password-store synchronization to git";
-      Documentation = [
-        "man:pass(1)"
-        "https://git.fcuny.net/fcuny/password-store"
-      ];
-      ConditionPathIsDirectory = "${config.programs.password-store.settings.PASSWORD_STORE_DIR}/.git";
-    };
-    Service = {
-      Type = "oneshot";
-      Environment = "PASSWORD_STORE_DIR=${config.programs.password-store.settings.PASSWORD_STORE_DIR}";
-      WorkingDirectory = config.programs.password-store.settings.PASSWORD_STORE_DIR;
-      ExecStart = "${pkgs.git}/bin/git push origin %H";
-    };
-  };
+  services.password-store-sync.enable = true;
 
-  systemd.user.timers.git-password-store = {
-    Unit = {
-      Description = "password-store synchronization timer";
-      Documentation = "man:pass(1)";
-    };
-    Timer = {
-      OnBootSec = "20m";
-      OnUnitActiveSec = "60m";
-    };
-    Install = { WantedBy = [ "timers.target" ]; };
-  };
+  # Ensure the password store things are in the systemd session
+  systemd.user.sessionVariables = config.programs.password-store.settings;
 }