org-roam
notes sync service and new workflows
This commit is contained in:
parent
021ee17f1b
commit
ff6d91c282
9 changed files with 52 additions and 24 deletions
|
@ -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"];};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
Timer = {
|
||||
Unit = "nix-index-update.service";
|
||||
OnCalendar = "OnCalendar=monday *-*-* 10:00:00";
|
||||
OnCalendar = "monday *-*-* 10:00:00";
|
||||
Persistent = true;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue