mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
15 lines
486 B
Cheetah
15 lines
486 B
Cheetah
{{ 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
|
||
|
|
{{ else -}}
|
||
|
|
#!/bin/sh
|
||
|
|
exit 0
|
||
|
|
{{ end -}}
|