services: navidrome: make music folder configurable
This commit is contained in:
parent
bee57a1e09
commit
901556f805
|
@ -8,6 +8,10 @@ let
|
||||||
in {
|
in {
|
||||||
options.my.services.navidrome = {
|
options.my.services.navidrome = {
|
||||||
enable = mkEnableOption "Navidrome";
|
enable = mkEnableOption "Navidrome";
|
||||||
|
musicFolder = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "./music";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
@ -17,6 +21,7 @@ in {
|
||||||
Address = "127.0.0.1";
|
Address = "127.0.0.1";
|
||||||
Port = 4533;
|
Port = 4533;
|
||||||
LastFM.Enabled = false;
|
LastFM.Enabled = false;
|
||||||
|
MusicFolder = cfg.musicFolder;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue