summary refs log tree commit diff
path: root/nixos/modules/services/audio/mpdscribble.nix
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2021-12-05 22:06:49 +0100
committerpennae <github@quasiparticle.net>2021-12-09 01:38:24 +0100
commit2d564521c094b17e88707ac95cb4b6331b1b709a (patch)
tree39be0a04a8835f7682dd70aae57d85ca46db7c3d /nixos/modules/services/audio/mpdscribble.nix
parent6eaf4f90c2b25918109fb2689d56e33a4f59f37d (diff)
downloadnixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.tar
nixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.tar.gz
nixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.tar.bz2
nixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.tar.lz
nixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.tar.xz
nixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.tar.zst
nixpkgs-2d564521c094b17e88707ac95cb4b6331b1b709a.zip
treewide: add literalDocBook text to options with complex defaults
some options have default that are best described in prose, such as
defaults that depend on the system stateVersion, defaults that are
derivations specific to the surrounding context, or those where the
expression is much longer and harder to understand than a simple text
snippet.
Diffstat (limited to 'nixos/modules/services/audio/mpdscribble.nix')
-rw-r--r--nixos/modules/services/audio/mpdscribble.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/audio/mpdscribble.nix b/nixos/modules/services/audio/mpdscribble.nix
index 57d3ef77b34..333ffb70941 100644
--- a/nixos/modules/services/audio/mpdscribble.nix
+++ b/nixos/modules/services/audio/mpdscribble.nix
@@ -128,6 +128,10 @@ in {
           mpdCfg.credentials).passwordFile
       else
         null;
+      defaultText = literalDocBook ''
+        The first password file with read access configured for MPD when using a local instance,
+        otherwise <literal>null</literal>.
+      '';
       type = types.nullOr types.str;
       description = ''
         File containing the password for the mpd daemon.