2026-11-02 09:14:11 -05:00
|
|
|
{{ if eq .chezmoi.os "linux" -}}
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
# Enable session-critical user services. Personal automation units
|
|
|
|
|
# (brain-lens, omp-loop, rclone, hermes, voxtype) ship as files only —
|
|
|
|
|
# enable manually per machine.
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
|
|
# Pre-shutdown save of kitty's daily session (dot_config/systemd/user, only on
|
|
|
|
|
# linux desktop/laptop roles; see .chezmoiignore.tmpl).
|
|
|
|
|
if [ -f "$HOME/.config/systemd/user/kitty-day-save.service" ] && command -v systemctl >/dev/null 2>&1; then
|
|
|
|
|
systemctl --user daemon-reload || true
|
|
|
|
|
systemctl --user enable --now kitty-day-save.service || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Symlink ~/Code repos into ~/Projects every 5 min (same role gate).
|
|
|
|
|
if [ -f "$HOME/.config/systemd/user/projects-sync.timer" ] && command -v systemctl >/dev/null 2>&1; then
|
|
|
|
|
systemctl --user daemon-reload || true
|
|
|
|
|
systemctl --user enable --now projects-sync.timer || true
|
|
|
|
|
fi
|
2026-11-07 12:27:42 -05:00
|
|
|
|
|
|
|
|
# Vicinae launcher daemon. The package ships the unit (WantedBy=
|
|
|
|
|
# graphical-session.target, which uwsm starts); only desktop/laptop roles
|
|
|
|
|
# install vicinae, so the unit's presence is the role gate.
|
|
|
|
|
if [ -f /usr/lib/systemd/user/vicinae.service ] && command -v systemctl >/dev/null 2>&1; then
|
|
|
|
|
systemctl --user daemon-reload || true
|
|
|
|
|
systemctl --user enable --now vicinae.service || true
|
|
|
|
|
fi
|
2026-11-02 09:14:11 -05:00
|
|
|
{{ else -}}
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exit 0
|
|
|
|
|
{{ end -}}
|