nixos/mpd: allow any URI schema in music_directory

There are many more URI schemas possible, and it depends on storage
plugins activated etc.
This commit is contained in:
Doron Behar
2025-11-17 11:53:10 +02:00
parent 9279e2a51c
commit eff6e4f42c
+2 -2
View File
@@ -104,11 +104,11 @@ in
};
music_directory = lib.mkOption {
type = with lib.types; either path (strMatching "(http|https|nfs|smb)://.+");
type = with lib.types; either path (strMatching "([a-z]+)://.+");
default = "${cfg.dataDir}/music";
defaultText = lib.literalExpression ''"''${dataDir}/music"'';
description = ''
The directory or NFS/SMB network share where MPD reads music from. If left
The directory or URI where MPD reads music from. If left
as the default value this directory will automatically be created before
the MPD server starts, otherwise the sysadmin is responsible for ensuring
the directory exists with appropriate ownership and permissions.