org-roam notes sync service and new workflows

This commit is contained in:
Andrea Ciceri 2022-12-28 18:36:55 +01:00
parent 021ee17f1b
commit ff6d91c282
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
9 changed files with 52 additions and 24 deletions

View file

@ -124,4 +124,31 @@ in {
en_US-large
it_IT
]);
# TODO: probably not the best place, this is unrelated to Emacs
systemd.user.services.second-brain-sync = {
Unit = {Description = "mbsync mailbox synchronization";};
Service = {
Type = "oneshot";
ExecStart = let
sync = pkgs.writeShellScript "second-brain-sync-script" ''
echo ciao
'';
in "${sync}";
};
};
systemd.user.timers.second-brain-sync = {
Unit = {inherit (config.systemd.user.services.second-brain-sync.Unit) Description;};
Timer = {
OnCalendar = "daily";
Unit = "mbsync.service";
Persistent = true;
OnStartupSec = "60m";
};
Install = {WantedBy = ["timers.target"];};
};
}