mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
ab70a02363
- 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
22 lines
No EOL
587 B
Text
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> |