feat(config): add projects-sync systemd service and timer

This commit is contained in:
Prad Nukala committed 2026-10-15 14:26:17 -04:00
1 parent cf1c0e2e3e
commit 542619cd4d
8 files changed
+33 -8

No files matched your search

@@ -0,0 +1,6 @@
[Unit]
Description=Symlink ~/Code repos into ~/Projects
[Service]
Type=oneshot
ExecStart=%h/.local/bin/projects-sync
@@ -0,0 +1,11 @@
[Unit]
Description=Keep ~/Projects in sync with ~/Code
# ponytail: polls every 5 min; ghq clones land two levels below ~/Code, out
# of reach of a non-recursive .path unit. Switch to inotify if 5 min is slow.
[Timer]
OnStartupSec=30s
OnUnitActiveSec=5min
[Install]
WantedBy=timers.target