diff options
| author | Joe Mou <dev@mou.fo> | 2026-04-15 13:27:50 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2026-04-20 20:18:57 -0400 |
| commit | 546dbcd2a990e45ff38a3031193d519572cc3aef (patch) | |
| tree | 1140e82b13e24d44a27ab9dcf7255250cb7c0f82 /hostnix/mojo | |
| parent | 5f308a6b1421c1ef9aab9ef88133be611e8b91e8 (diff) | |
mojo: Obsidian w/ auto-sync
Diffstat (limited to 'hostnix/mojo')
| -rw-r--r-- | hostnix/mojo/flake.nix | 1 | ||||
| -rw-r--r-- | hostnix/mojo/modules/obsidian.nix | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/hostnix/mojo/flake.nix b/hostnix/mojo/flake.nix index 0a4a3bd..a61430f 100644 --- a/hostnix/mojo/flake.nix +++ b/hostnix/mojo/flake.nix @@ -44,6 +44,7 @@ modules = [ configuration ./modules/apps.nix + ./modules/obsidian.nix ./modules/sunshine.nix ./modules/system.nix ]; diff --git a/hostnix/mojo/modules/obsidian.nix b/hostnix/mojo/modules/obsidian.nix new file mode 100644 index 0000000..0357b0f --- /dev/null +++ b/hostnix/mojo/modules/obsidian.nix @@ -0,0 +1,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; + }; + }; +} |
