mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
mpd: Make it possible to specify db file path
This commit is contained in:
parent
fbd02063f1
commit
3620b27a66
@ -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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user