nixos/mpd: small formatting to mpdConf
This commit is contained in:
@@ -27,29 +27,29 @@ let
|
||||
mpdConf = pkgs.writeTextFile {
|
||||
name = "mpd.conf";
|
||||
text = ''
|
||||
# This file was automatically generated by NixOS. Edit mpd's configuration
|
||||
# via NixOS' configuration.nix, as this file will be rewritten upon mpd's
|
||||
# restart.
|
||||
# This file was automatically generated by NixOS. Edit mpd's configuration
|
||||
# via NixOS' configuration.nix, as this file will be rewritten upon mpd's
|
||||
# restart.
|
||||
|
||||
music_directory "${cfg.music_directory}"
|
||||
playlist_directory "${cfg.playlist_directory}"
|
||||
db_file "${cfg.db_file}"
|
||||
state_file "${cfg.dataDir}/state"
|
||||
sticker_file "${cfg.dataDir}/sticker.sql"
|
||||
music_directory "${cfg.music_directory}"
|
||||
playlist_directory "${cfg.playlist_directory}"
|
||||
db_file "${cfg.db_file}"
|
||||
state_file "${cfg.dataDir}/state"
|
||||
sticker_file "${cfg.dataDir}/sticker.sql"
|
||||
|
||||
bind_to_address "${cfg.bind_to_address}"
|
||||
port "${toString cfg.port}"
|
||||
${lib.optionalString (cfg.fluidsynth) ''
|
||||
decoder {
|
||||
plugin "fluidsynth"
|
||||
soundfont "${pkgs.soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2"
|
||||
}
|
||||
''}
|
||||
bind_to_address "${cfg.bind_to_address}"
|
||||
port "${toString cfg.port}"
|
||||
${lib.optionalString (cfg.fluidsynth) ''
|
||||
decoder {
|
||||
plugin "fluidsynth"
|
||||
soundfont "${pkgs.soundfont-fluid}/share/soundfonts/FluidR3_GM2-2.sf2"
|
||||
}
|
||||
''}
|
||||
|
||||
${lib.optionalString (cfg.credentials != [ ]) (credentialsPlaceholder cfg.credentials)}
|
||||
${lib.optionalString (cfg.credentials != [ ]) (credentialsPlaceholder cfg.credentials)}
|
||||
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
${cfg.extraConfig}
|
||||
'';
|
||||
derivationArgs = {
|
||||
expectScript = ''
|
||||
spawn ${lib.getExe pkgs.buildPackages.mpd} --no-daemon "$env(out)"
|
||||
|
||||
Reference in New Issue
Block a user