Note backup service

This commit is contained in:
TheWanderingCrow 2024-10-03 11:49:42 -04:00
parent 7ac222a394
commit a4d89e173e

View file

@ -16,18 +16,10 @@
path = [
pkgs.git
];
script = "cd /home/crow/Notes\ngit add .\ngit commit -am 'automatic backup'\ngit push";
};
config.systemd.timers.note_sync = {
enable = true;
description = "Timer to autosync notes";
timerConfig = {
OnCalendar = "*:0/5";
Persistent = true;
};
wantedBy = [
"timers.target"
startAt = [
"*:0/5"
];
script = "cd /home/crow/Notes\ngit add .\ngit commit -am 'automatic backup'\ngit push";
};
config.home-manager.users.crow = lib.mkIf config.users.crow.home.enable ./home.nix;