From 901556f8051db8ee56238d2c22ba097c7db124b8 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 22 Aug 2021 17:24:52 +0200 Subject: [PATCH] services: navidrome: make music folder configurable --- services/navidrome.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/navidrome.nix b/services/navidrome.nix index 33372f6..3473737 100644 --- a/services/navidrome.nix +++ b/services/navidrome.nix @@ -8,6 +8,10 @@ let in { options.my.services.navidrome = { enable = mkEnableOption "Navidrome"; + musicFolder = mkOption { + type = types.str; + default = "./music"; + }; }; config = lib.mkIf cfg.enable { @@ -17,6 +21,7 @@ in { Address = "127.0.0.1"; Port = 4533; LastFM.Enabled = false; + MusicFolder = cfg.musicFolder; }; };