Use EnvironmentFile for tmux service

This commit is contained in:
Sonny Bakker 2026-09-04 14:19:22 +02:00
parent bed0959126
commit 93f4b81fb9
3 changed files with 25 additions and 2 deletions

13
templates/tmux/service.j2 Normal file
View file

@ -0,0 +1,13 @@
# {{ ansible_managed }}
#
[Unit]
Description=Tmux startup script
[Service]
EnvironmentFile={{ xdg_config_dir }}/tmux/env
ExecStart=/home/sonny/.local/bin/tmux_start
Type=forking
RemainAfterExit=yes
[Install]
WantedBy=default.target