2026-08-09 14:56:09 -04: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. See MIGRATION-NOTES.md.
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
|
|
if [ -f "$HOME/.config/systemd/user/nirinit.service" ] && command -v systemctl >/dev/null 2>&1; then
|
|
|
|
|
systemctl --user daemon-reload || true
|
|
|
|
|
systemctl --user enable nirinit.service || true
|
|
|
|
|
fi
|
2026-10-08 10:17:06 -04:00
|
|
|
|
|
|
|
|
# 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
|
2026-08-09 14:56:09 -04:00
|
|
|
{{ else -}}
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
exit 0
|
|
|
|
|
{{ end -}}
|