feat: systemd service for mount

This commit is contained in:
Matthieu Bessat 2024-06-11 17:22:00 +02:00
parent 3ec8b1d1e7
commit b8e71be310
14 changed files with 91 additions and 39 deletions

View file

@ -1,4 +1,6 @@
IdentityFile "~/.ssh/{{ device_name }}_perso_generic_ed25519"
Host forge.lefuturiste.fr
user git
IdentitiesOnly yes
IdentityFile ~/.ssh/{{ device_name }}_perso_generic_ed25519
IdentityFile "~/.ssh/{{ device_name }}_perso_generic_ed25519"

View file

@ -0,0 +1,14 @@
[Unit]
Description=SSHFS Daemon to mount a remote directory
StartLimitInterval=200
StartLimitBurst=8
[Service]
Type=simple
ExecStart=/usr/bin/sshfs -f {{ service_params.ssh_uri }} {{ service_params.mount_path }} -o reconnect,ServerAliveInterval=30,ServerAliveCountMax=5
Restart=always
StandardOutput=journal
RestartSec=20
[Install]
WantedBy=default.target

View file

@ -1,15 +0,0 @@
[Unit]
Description=SSHFS Daemon to mount srv06 warmd as a volume
StartLimitInterval=200
StartLimitBurst=8
[Service]
Type=simple
ExecStart=/usr/bin/sshfs -f {{ user }}@srv06.rem:/warmd/mbess {{ home }}/.mnt/srv06/warmd/mbess -o reconnect,ServerAliveInterval=30,ServerAliveCountMax=5
Restart=always
StandardOutput=journal
RestartSec=20
[Install]
WantedBy=default.target

View file

@ -0,0 +1,11 @@
[Unit]
Description=SwayBg
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=swaybg -i {{ home }}/.dots/wallpapers/jupiter.jpg -m fill
[Install]
WantedBy=sway-session.target