From 3620b27a6687dbbeccd9d1d53824c67b419f8199 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Fri, 10 Apr 2015 23:10:14 +0200 Subject: [PATCH] mpd: Make it possible to specify db file path --- nixos/modules/services/audio/mpd.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix index d9b5bf7b5e6f..06ba4b9b5acb 100644 --- a/nixos/modules/services/audio/mpd.nix +++ b/nixos/modules/services/audio/mpd.nix @@ -11,7 +11,7 @@ let mpdConf = pkgs.writeText "mpd.conf" '' music_directory "${cfg.musicDirectory}" playlist_directory "${cfg.dataDir}/playlists" - db_file "${cfg.dataDir}/tag_cache" + db_file "${cfg.dbFile}" state_file "${cfg.dataDir}/state" sticker_file "${cfg.dataDir}/sticker.sql" log_file "syslog" @@ -93,6 +93,14 @@ in { }; }; + + dbFile = mkOption { + type = types.str; + default = "${cfg.dataDir}/tag_cache"; + description = '' + The path to MPD's database. + ''; + }; }; };