aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/desktop/trust/pass.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/fcuny/desktop/trust/pass.nix')
-rw-r--r--users/fcuny/desktop/trust/pass.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/users/fcuny/desktop/trust/pass.nix b/users/fcuny/desktop/trust/pass.nix
index e2d9565..4273e40 100644
--- a/users/fcuny/desktop/trust/pass.nix
+++ b/users/fcuny/desktop/trust/pass.nix
@@ -8,16 +8,17 @@
systemd.user.services.git-password-store = {
Unit = {
- Description = "password-store synchronization service";
+ Description = "password-store synchronization to git";
Documentation = [
"man:pass(1)"
"https://git.fcuny.net/fcuny/password-store"
];
- ConditionPathIsDirectory = "%h/.local/share/password-store/.git";
+ ConditionPathIsDirectory = "${config.programs.password-store.service.PASSWORD_STORE_DIR}/.git";
};
Service = {
Type = "oneshot";
- WorkingDirectory = "%h/.local/share/password-store/.git";
+ Environment = "PASSWORD_STORE_DIR=${config.programs.password-store.service.PASSWORD_STORE_DIR}";
+ WorkingDirectory = config.programs.password-store.settings.PASSWORD_STORE_DIR;
ExecStart = "${pkgs.git}/bin/git push origin %H";
};
};