From a4d89e173e6e54463ea1b8936f7a01a87d4a47b7 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Thu, 3 Oct 2024 11:49:42 -0400 Subject: [PATCH] Note backup service --- modules/users/crow/user.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/users/crow/user.nix b/modules/users/crow/user.nix index 1500bed..b35a624 100644 --- a/modules/users/crow/user.nix +++ b/modules/users/crow/user.nix @@ -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;