]> git.rmz.io Git - dotfiles.git/commitdiff
mkosi/mpd: add mpd container
authorSamir Benmendil <me@rmz.io>
Mon, 14 Dec 2020 11:19:08 +0000 (11:19 +0000)
committerSamir Benmendil <me@rmz.io>
Mon, 14 Dec 2020 11:19:08 +0000 (11:19 +0000)
mkosi/mpd/.gitignore [new file with mode: 0644]
mkosi/mpd/mkosi.default [new file with mode: 0644]
mkosi/mpd/mkosi.extra/etc/mpd.conf [new file with mode: 0644]
mkosi/mpd/mkosi.nspawn [new file with mode: 0644]
mkosi/mpd/mkosi.postinst [new file with mode: 0755]

diff --git a/mkosi/mpd/.gitignore b/mkosi/mpd/.gitignore
new file mode 100644 (file)
index 0000000..8d8531b
--- /dev/null
@@ -0,0 +1 @@
+mpd/
diff --git a/mkosi/mpd/mkosi.default b/mkosi/mpd/mkosi.default
new file mode 100644 (file)
index 0000000..f59a2aa
--- /dev/null
@@ -0,0 +1,12 @@
+[Distribution]
+Distribution=arch
+Mirror=http://archlinux.uk.mirror.allworldit.com/archlinux/
+
+[Output]
+Output=mpd
+Format=subvolume
+
+[Packages]
+Packages=
+    mpd
+    pulseaudio
diff --git a/mkosi/mpd/mkosi.extra/etc/mpd.conf b/mkosi/mpd/mkosi.extra/etc/mpd.conf
new file mode 100644 (file)
index 0000000..e60439c
--- /dev/null
@@ -0,0 +1,12 @@
+bind_to_address     "any"
+music_directory     "/mnt/fook/music"
+
+pid_file "/run/mpd/mpd.pid"
+db_file "/var/lib/mpd/mpd.db"
+state_file "/var/lib/mpd/mpdstate"
+playlist_directory "/var/lib/mpd/playlists"
+
+audio_output {
+    type "pulse"
+    name "My Pulse Output"
+}
diff --git a/mkosi/mpd/mkosi.nspawn b/mkosi/mpd/mkosi.nspawn
new file mode 100644 (file)
index 0000000..8a09673
--- /dev/null
@@ -0,0 +1,2 @@
+[Files]
+Bind=/mnt/fook/music
diff --git a/mkosi/mpd/mkosi.postinst b/mkosi/mpd/mkosi.postinst
new file mode 100755 (executable)
index 0000000..c947d95
--- /dev/null
@@ -0,0 +1,2 @@
+passwd -d root
+systemctl enable mpd