1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-08 20:29:43 +01:00
home-manager/tests/modules/services/git-sync-darwin/expected-agent.plist
ryane ab70a02363
git-sync: add darwin support
- On darwin, creates a launch agent to run git-sync on an interval and
  when the `path` changes.

- The `uri` option is not used on Darwin. The auto-creation of the
  local git directory from the `uri` is a feature of the
  git-sync-on-inotify [1] wrapper (which won't work on Darwin afaik)
  and not `git-sync` itself.

[1] https://github.com/simonthum/git-sync/blob/master/contrib/git-sync-on-inotify
2023-07-24 11:16:09 +02:00

22 lines
No EOL
587 B
Text

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.nix-community.home.git-sync-test</string>
<key>ProcessType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>@git-sync@/bin/git-sync</string>
</array>
<key>StartInterval</key>
<integer>500</integer>
<key>WatchPaths</key>
<array>
<string>/a/path</string>
</array>
<key>WorkingDirectory</key>
<string>/a/path</string>
</dict>
</plist>