summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorxeji <36407913+xeji@users.noreply.github.com>2018-08-03 21:59:30 +0200
committerGitHub <noreply@github.com>2018-08-03 21:59:30 +0200
commitc9f3382a39c8453ed5e1dccdba4ca486eae7a29e (patch)
tree9af3f952920fda9fa9943fc2d704e7300e91c64f /nixos/modules
parentaf176db5d725b2213139ac46699a4e6a59d5e994 (diff)
parentb9234ea49c6bfb71d1435fd584ae83123f61fa67 (diff)
downloadnixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.tar
nixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.tar.gz
nixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.tar.bz2
nixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.tar.lz
nixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.tar.xz
nixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.tar.zst
nixlib-c9f3382a39c8453ed5e1dccdba4ca486eae7a29e.zip
Merge pull request #43934 from jfrankenau/mpd-smb
mpd: add nfs and smb support
Diffstat (limited to 'nixos/modules')
-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 3add6556d0df..5bfe2b6a22ad 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.
         '';
       };