helm/profiles/sync/default.nix
2021-11-29 22:11:58 +10:00

21 lines
406 B
Nix

{pkgs, ...}:
{
systemd.services.kitaab-sync = {
serviceConfig.Type = "oneshot";
path = [
pkgs.git
];
script = ''
cd /home/anish/vimwiki/
git commit -am "syncing curve"
git push
'';
};
systemd.timers.kitaab-timer = {
wantedBy = [ "timers.target" ];
partOf = [ "kitaab-sync.service" ];
timerConfig.OnCalendar = [ "*-*-* *:00:00" ];
};
}