summaryrefslogtreecommitdiff
path: root/hostnix/mojo/modules/obsidian.nix
blob: 0357b0f7aa7a45185861a27e20a1d54f8f2a535a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ ... }:
{
  homebrew.casks = [ "obsidian" ];

  launchd.user.agents.obsidian-auto-sync = {
    script = ''
      cd /Users/joe/src/Obsidian
      ./.obsidian/auto-sync
    '';
    serviceConfig = {
      StartInterval = 300;
      StandardOutPath = "/Users/joe/Library/Logs/obsidian-auto-sync.log";
      StandardErrorPath = "/Users/joe/Library/Logs/obsidian-auto-sync.log";
      RunAtLoad = false;
    };
  };
}