helm/profiles/sync/default.nix

21 lines
440 B
Nix
Raw Permalink Normal View History

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-03-24 06:06:10 -07:00
${pkgs.coreutils}/bin/cd /home/anish/vimwiki/
${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" ];
};
}