From 5f46121fc753d59fc45d7ff9a37d36d28c33933d Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 7 Nov 2022 20:16:19 -0800 Subject: Add MPD configuration This also includes an attempt at installing a custom SCSH that defines some search paths. But unfortunately it didn't work, so the SCSH ends up being the usual one and the ‘mpd-random-albums’ package doesn't actually work. The main MPD configuration does work, though. This also includes the instruction to install tmsu which I want to try out again. --- oni/home/config/rincewind.scm | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'oni/home/config/rincewind.scm') diff --git a/oni/home/config/rincewind.scm b/oni/home/config/rincewind.scm index c093f66..7b58931 100644 --- a/oni/home/config/rincewind.scm +++ b/oni/home/config/rincewind.scm @@ -5,6 +5,7 @@ #:use-module (gnu packages commencement) #:use-module (gnu packages emacs) #:use-module (gnu packages emacs-xyz) + #:use-module (gnu packages file-systems) #:use-module (gnu packages linux) #:use-module (gnu packages music) #:use-module (gnu packages video) @@ -32,7 +33,10 @@ #:use-module (oni packages notmuch-collect-tasks) #:use-module (oni packages notmuch-tag-mailinglists) #:use-module (oni packages pick-random-wallpaper) - #:use-module (oni packages shutdown-rofi)) + #:use-module (oni packages shutdown-rofi) + #:use-module (oni packages mpd-random-albums) + #:use-module (oni home services mpd) + #:use-module (oop goops)) (define (with-master-branch package) "Apply a transformation to PACKAGE so that it uses the master branch." @@ -55,6 +59,8 @@ emacs-org-roam emacs-vterm fakeroot ; Needed for build arch packages + tmsu + mpd-random-albums )) (services @@ -106,4 +112,20 @@ (home-emacs-configuration (package emacs-next))) - (service home-flameshot-service-type)))) + (service home-flameshot-service-type) + + (service home-mpd-service-type + (home-mpd-configuration + (music-directory "~/music") + (playlist-directory "~/music/playlists") + (log-file "~/.local/share/mpd/mpd.log") + (pid-file "~/.local/share/mpd/mpd.pid") + (db-file "~/.local/share/mpd/mpd.db") + (state-file "~/.local/share/mpd/mpdstate") + (audio-outputs + (list (make #:type "pulse" #:name "MPD Pulse") + (make + #:type "fifo" + #:name "Visualizer" + #:path "/tmp/mpd.fifo" + #:format "44100:16:2")))))))) -- cgit v1.2.3-54-g00ecf