From 2fb59d70925289aadb8844f6137b0699c35cdf7d Mon Sep 17 00:00:00 2001 From: josiah Date: Sat, 12 Feb 2022 11:12:57 -0600 Subject: [PATCH] Create new service configs for my desktop stuff. --- .config/services/calibre-remote.service | 17 +++++++++++++++++ .config/services/nm-applet.service | 17 +++++++++++++++++ .config/services/syncthingtray.service | 20 ++++++++++++++++++++ .config/services/tailscale-systray.service | 18 ++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 .config/services/calibre-remote.service create mode 100644 .config/services/nm-applet.service create mode 100644 .config/services/syncthingtray.service create mode 100644 .config/services/tailscale-systray.service diff --git a/.config/services/calibre-remote.service b/.config/services/calibre-remote.service new file mode 100644 index 0000000..d716d3d --- /dev/null +++ b/.config/services/calibre-remote.service @@ -0,0 +1,17 @@ +[Unit] +Description=Runs Calibre remotely from Hatchery +After=network.target + +[Service] +User=josiah +ExecStart=ssh -i /home/josiah/.ssh/home-net -X josiah@hatchery -v -Y calibre +LimitNOFILE=1024 + +Restart=always +RestartSec=10 +Environment=DISPLAY=:0 + +PermissionsStartOnly=true + +[Install] +WantedBy=default.target diff --git a/.config/services/nm-applet.service b/.config/services/nm-applet.service new file mode 100644 index 0000000..35993e5 --- /dev/null +++ b/.config/services/nm-applet.service @@ -0,0 +1,17 @@ +[Unit] +Description=runs the nm applet for the system tray +After=network.target + +[Service] +User=josiah +ExecStart=/usr/bin/nm-applet +LimitNOFILE=1024 + +Restart=always +RestartSec=10 +Environment=DISPLAY=:0 + +PermissionsStartOnly=true + +[Install] +WantedBy=default.target diff --git a/.config/services/syncthingtray.service b/.config/services/syncthingtray.service new file mode 100644 index 0000000..3ff7a7f --- /dev/null +++ b/.config/services/syncthingtray.service @@ -0,0 +1,20 @@ +[Unit] +Description=Runs the SyncthingTray process. +After=network.target + +[Service] +User=josiah +WorkingDirectory=/home/josiah/bin/ +# workingdir didn't seem to function, had to pass full path to execstart +ExecStart=/home/josiah/bin/syncthingtray-1.1.15-Build56.1.glibc2.17-x86_64.AppImage +LimitNOFILE=1024 + +Restart=always +RestartSec=10 +startLimitIntervalSec=60 +Environment=DISPLAY=:0 + +PermissionsStartOnly=true + +[Install] +WantedBy=default.target diff --git a/.config/services/tailscale-systray.service b/.config/services/tailscale-systray.service new file mode 100644 index 0000000..69359f9 --- /dev/null +++ b/.config/services/tailscale-systray.service @@ -0,0 +1,18 @@ +[Unit] +Description=Runs the tailscale systray +After=network.target +Wants=tailscaled.service + +[Service] +User=josiah +ExecStart=/home/josiah/go/bin/tailscale-systray +LimitNOFILE=1024 + +Restart=always +RestartSec=10 +Environment=DISPLAY=:0 + +PermissionsStartOnly=true + +[Install] +WantedBy=default.target