2022-03-24 06:06:10 -07:00
|
|
|
{ pkgs, ... }:
|
2021-11-29 04:11:58 -08:00
|
|
|
|
|
|
|
{
|
|
|
|
systemd.services.kitaab-sync = {
|
|
|
|
serviceConfig.Type = "oneshot";
|
|
|
|
path = [
|
2022-03-24 06:06:10 -07:00
|
|
|
pkgs.git
|
|
|
|
];
|
2021-11-29 04:11:58 -08:00
|
|
|
script = ''
|
2022-04-23 22:06:57 -07:00
|
|
|
${pkgs.coreutils}/bin/cd /home/anish/kitaab/vimwiki
|
2022-03-24 06:06:10 -07:00
|
|
|
${pkgs.git} commit -am "syncing curve"
|
|
|
|
${pkgs.git} push
|
|
|
|
'';
|
2021-11-29 04:11:58 -08:00
|
|
|
};
|
|
|
|
systemd.timers.kitaab-timer = {
|
|
|
|
wantedBy = [ "timers.target" ];
|
|
|
|
partOf = [ "kitaab-sync.service" ];
|
|
|
|
timerConfig.OnCalendar = [ "*-*-* *:00:00" ];
|
|
|
|
};
|
|
|
|
}
|