summary refs log tree commit diff
path: root/nixos/modules/services/audio/mpd.nix
diff options
context:
space:
mode:
authorJohannes Frankenau <johannes@frankenau.net>2018-07-21 23:19:34 +0200
committerJohannes Frankenau <johannes@frankenau.net>2018-08-03 21:36:38 +0200
commitb9234ea49c6bfb71d1435fd584ae83123f61fa67 (patch)
treefb5b7319ee265a8a125f5660f64d0ccd715e46bb /nixos/modules/services/audio/mpd.nix
parentfbcc4daff7652ad630e7bb0d6ae71467aa2609e3 (diff)
downloadnixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.tar
nixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.tar.gz
nixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.tar.bz2
nixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.tar.lz
nixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.tar.xz
nixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.tar.zst
nixpkgs-b9234ea49c6bfb71d1435fd584ae83123f61fa67.zip
nixos/mpd: allow storage plugins in musicDirectory
Diffstat (limited to 'nixos/modules/services/audio/mpd.nix')
-rw-r--r--nixos/modules/services/audio/mpd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix
index 3add6556d0d..5bfe2b6a22a 100644
--- a/nixos/modules/services/audio/mpd.nix
+++ b/nixos/modules/services/audio/mpd.nix
@@ -55,11 +55,11 @@ in {
       };
 
       musicDirectory = mkOption {
-        type = types.path;
+        type = with types; either path (strMatching "(http|https|nfs|smb)://.+");
         default = "${cfg.dataDir}/music";
         defaultText = ''''${dataDir}/music'';
         description = ''
-          The directory where mpd reads music from.
+          The directory or NFS/SMB network share where mpd reads music from.
         '';
       };