services.plex-mpv-shim.enable
Whether to enable Plex mpv shim.
Type: boolean
Default:
false
Example:
true
Declared by:
services.plex-mpv-shim.package
The plex-mpv-shim package to use.
Type: package
Default:
pkgs.plex-mpv-shim
Declared by:
services.plex-mpv-shim.mutableSettings
Whether to merge into a
writable conf.json at activation instead of linking it from
the Nix store.
Plex mpv shim writes this file when it loads settings and whenever a
setting is changed from its menu or a Plex remote. With a linked file
those writes fail, and the generated player identity
(client_uuid) is not kept across restarts.
When enabled, declared settings override existing values and other
keys are preserved, including settings later removed from
. Changed settings trigger a
restart when automatic systemd service switching is enabled. If
systemd.user.startServices is false or "suggest", restart
the shim manually to load changed settings. A running shim can still
write its old values back between the merge and restart; stop it
before switching and start it afterward to avoid this window.
Disabling this option later leaves the writable conf.json in
place. If settings are nonempty, move or remove it before switching,
or Home Manager reports a file collision.
Type: boolean
Default:
false
Example:
true
Declared by:
services.plex-mpv-shim.settings
Configuration written to
$XDG_CONFIG_HOME/plex-mpv-shim/conf.json. See
for how the file is
managed, and
https://github.com/iwalton3/plex-mpv-shim/blob/master/README.md
for the configuration documentation.
Type: JSON value
Default:
{ }
Example:
{
adaptive_transcode = false;
allow_http = false;
always_transcode = false;
audio_ac3passthrough = false;
audio_dtspassthrough = false;
auto_play = true;
auto_transcode = true;
}
Declared by: