mpd: Make it possible to specify db file path

This commit is contained in:
Rickard Nilsson 2015-04-10 23:10:14 +02:00
parent fbd02063f1
commit 3620b27a66

View File

@ -11,7 +11,7 @@ let
mpdConf = pkgs.writeText "mpd.conf" '' mpdConf = pkgs.writeText "mpd.conf" ''
music_directory "${cfg.musicDirectory}" music_directory "${cfg.musicDirectory}"
playlist_directory "${cfg.dataDir}/playlists" playlist_directory "${cfg.dataDir}/playlists"
db_file "${cfg.dataDir}/tag_cache" db_file "${cfg.dbFile}"
state_file "${cfg.dataDir}/state" state_file "${cfg.dataDir}/state"
sticker_file "${cfg.dataDir}/sticker.sql" sticker_file "${cfg.dataDir}/sticker.sql"
log_file "syslog" 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.
'';
};
}; };
}; };