From eff6e4f42c9397b227fc2a5be7c3088e1cbeee65 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 17 Nov 2025 11:45:56 +0200 Subject: [PATCH] nixos/mpd: allow any URI schema in music_directory There are many more URI schemas possible, and it depends on storage plugins activated etc. --- nixos/modules/services/audio/mpd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/audio/mpd.nix b/nixos/modules/services/audio/mpd.nix index 04941fefa1eb..2f1012ae3d85 100644 --- a/nixos/modules/services/audio/mpd.nix +++ b/nixos/modules/services/audio/mpd.nix @@ -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.