Push password-store changes daily to git

This commit is contained in:
coolneng 2021-04-14 18:33:53 +02:00
parent f702474d22
commit b2691a751a
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 18 additions and 0 deletions

View File

@ -60,4 +60,22 @@
}; };
}; };
# Push password-store changes to git
systemd.user.services.password-store-push = {
description = "Push password-store changes to git";
wantedBy = [ "default.target" ];
path = [ pkgs.pass-wayland pkgs.git pkgs.gitAndTools.pass-git-helper ];
script = "${pkgs.pass-wayland}/bin/pass git push";
serviceConfig.Type = "oneshot";
};
systemd.user.timers.password-store-push = {
description = "Daily password-store git push";
wantedBy = [ "default.target" ];
timerConfig = {
OnCalendar = "18:00:00";
Unit = "password-store-push.service";
};
};
} }