21 lines
406 B
Nix
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" ];
|
|
};
|
|
}
|