services.mpd.enable
Whether to enable MPD, the music player daemon.
Type: boolean
Default:
false
Declared by:
services.mpd.enableSessionVariables
Whether to set MPD_HOST MPD_PORT environment variables
according to services.mpd.network.
Type: boolean
Default:
true
Declared by:
services.mpd.package
The mpd package to use.
Type: package
Default:
pkgs.mpd
Declared by:
services.mpd.dataDir
The directory where MPD stores its state, tag cache, playlists etc.
Type: absolute path
Default:
"$XDG_DATA_HOME/mpd"
Declared by:
services.mpd.dbFile
The path to MPD’s database. If set to
null the parameter is omitted from the
configuration.
Type: null or string
Default:
"\${dataDir}/tag_cache"
Declared by:
services.mpd.extraArgs
Extra command-line arguments to pass to MPD.
Type: list of string
Default:
[ ]
Example:
[
"--verbose"
]
Declared by:
services.mpd.extraConfig
Extra directives added to the end of MPD’s configuration
file, mpd.conf. Basic configuration
like file location and uid/gid is added automatically to the
beginning of the file. For available options see
mpd.conf(5).
Type: strings concatenated with “\n”
Default:
""
Declared by:
services.mpd.generatedConfig
The generated config. Can be used by user as:
configFile.“mpd/mpd.conf”.text = config.services.mpd.generatedConfig;
Type: string (read only)
Declared by:
services.mpd.musicDirectory
The directory where mpd reads music from.
If is
true then the defined XDG music directory is used.
Otherwise, you must explicitly specify a value.
Type: absolute path or string
Default:
${home.homeDirectory}/music if state version < 22.11
${xdg.userDirs.music} if xdg.userDirs.enable == true
undefined otherwise
Declared by:
services.mpd.network.listenAddress
The address for the daemon to listen on.
Use any to listen on all addresses.
Type: string
Default:
"127.0.0.1"
Example:
"any"
Declared by:
services.mpd.network.port
The TCP port on which the the daemon will listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
6600
Declared by:
services.mpd.network.startWhenNeeded
Enable systemd socket activation. This is only supported on Linux.
Type: boolean
Default:
false
Declared by:
services.mpd.playlistDirectory
The directory where mpd stores playlists.
Type: absolute path
Default:
"\${dataDir}/playlists"
Declared by: