blob: e2d9565b05f3686ee102d84b03abcf2f921968d5 (
plain) (
tree)
|
|
{ pkgs, config, ... }:
{
programs.password-store.enable = true;
programs.password-store.settings.PASSWORD_STORE_DIR =
"${config.xdg.dataHome}/password-store";
systemd.user.services.git-password-store = {
Unit = {
Description = "password-store synchronization service";
Documentation = [
"man:pass(1)"
"https://git.fcuny.net/fcuny/password-store"
];
ConditionPathIsDirectory = "%h/.local/share/password-store/.git";
};
Service = {
Type = "oneshot";
WorkingDirectory = "%h/.local/share/password-store/.git";
ExecStart = "${pkgs.git}/bin/git push origin %H";
};
};
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" ]; };
};
}
|