aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@rak.ac>2022-10-06 10:16:12 -0400
committerRyan Kavanagh <rak@rak.ac>2022-10-06 10:16:12 -0400
commite7498676662e0612da0c428143a4e4a79ccf9891 (patch)
treed87dfa7fbb71e8b69460e707f05a3e51ad62b4f2
parentavoid custom keybindings from getting overridden in zsh (diff)
/var/lib/mpd/music automounter
-rw-r--r--etc/systemd/system/var-lib-mpd-music.automount9
-rw-r--r--etc/systemd/system/var-lib-mpd-music.mount11
2 files changed, 20 insertions, 0 deletions
diff --git a/etc/systemd/system/var-lib-mpd-music.automount b/etc/systemd/system/var-lib-mpd-music.automount
new file mode 100644
index 0000000..7314a79
--- /dev/null
+++ b/etc/systemd/system/var-lib-mpd-music.automount
@@ -0,0 +1,9 @@
+[Unit]
+Description=Automount /var/lib/mpd/music
+
+[Automount]
+Where=/var/lib/mpd/music
+DirectoryMode=0555
+
+[Install]
+WantedBy=multi-user.target mpd.service
diff --git a/etc/systemd/system/var-lib-mpd-music.mount b/etc/systemd/system/var-lib-mpd-music.mount
new file mode 100644
index 0000000..bab6239
--- /dev/null
+++ b/etc/systemd/system/var-lib-mpd-music.mount
@@ -0,0 +1,11 @@
+[Unit]
+Description=MPD music mount
+Requires=zfs-mount.service
+
+[Mount]
+What=/media/t/music_clean
+Where=/var/lib/mpd/music
+Options=bind,ro
+
+[Install]
+WantedBy=multi-user.target