diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-20 18:50:00 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-21 08:43:35 -0800 |
commit | 8a6286f8b9cf596cea9998a8eb6d2f2bdca3abdf (patch) | |
tree | 2813c7115a1db7e984bfa0b4241116ee99495629 /users | |
parent | mpd: fix path to ncmpcpp configuration (diff) | |
download | world-8a6286f8b9cf596cea9998a8eb6d2f2bdca3abdf.tar.gz |
pass: use upstream synchroniser service
I don't have to write / maintain my own!
Diffstat (limited to '')
-rw-r--r-- | users/fcuny/desktop/trust/pass.nix | 30 |
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; } |