From 16b74bfaab48fa8e890881eead078b09dcefbcf8 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 11 Feb 2023 12:22:46 +0100 Subject: Fix: Remove typo from home-manager directory name --- home-manager/mpd/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 home-manager/mpd/default.nix (limited to 'home-manager/mpd/default.nix') diff --git a/home-manager/mpd/default.nix b/home-manager/mpd/default.nix new file mode 100644 index 00000000..02b94d0e --- /dev/null +++ b/home-manager/mpd/default.nix @@ -0,0 +1,30 @@ +{ + config, + pkgs, + ... +}: let + dataDir = "$XDG_DATA_HOME/mpd"; +in { + home-manager.services.mpd = { + enable = true; + inherit dataDir; + musicDirectory = "~/media/music"; + network = { + listenAddress = "${dataDir}/socket"; + }; + extraConfig = '' + metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc,comment" + auto_update "yes" + + #database { + # plugin "simple" + # path "~/.local/share/mpd/db + # cache_directory "~/.local/share/mpd/cache" + #} + + filesystem_charset "UTF-8" + ''; + }; +} +# vim: ts=2 + -- cgit 1.4.1