diff options
author | Tom Willemse | 2022-11-07 20:16:19 -0800 |
---|---|---|
committer | Tom Willemse | 2022-11-07 20:16:19 -0800 |
commit | 5f46121fc753d59fc45d7ff9a37d36d28c33933d (patch) | |
tree | 20874447986ac0b94fda2781382380fe020446e9 /oni/home/config/rincewind.scm | |
parent | b2e72743dea486311677a3a2c641795b36b445f0 (diff) | |
download | new-dotfiles-5f46121fc753d59fc45d7ff9a37d36d28c33933d.tar.gz new-dotfiles-5f46121fc753d59fc45d7ff9a37d36d28c33933d.zip |
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.
Diffstat (limited to 'oni/home/config/rincewind.scm')
-rw-r--r-- | oni/home/config/rincewind.scm | 26 |
1 files changed, 24 insertions, 2 deletions
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 <home-mpd-audio-output> #:type "pulse" #:name "MPD Pulse") + (make <home-mpd-audio-output> + #:type "fifo" + #:name "Visualizer" + #:path "/tmp/mpd.fifo" + #:format "44100:16:2")))))))) |