helm/profiles/sync/default.nix
2022-04-24 15:06:57 +10:00

21 lines
446 B
Nix

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