Files
nix-homelab/modules/services/navidrome.nix

21 lines
407 B
Nix

{ config, lib, ... }:
let
cfg = config.control.navidrome;
in
{
config = lib.mkIf cfg.enable {
services.navidrome = {
enable = true;
settings = {
Address = "0.0.0.0";
Port = cfg.port;
MusicFolder = cfg.musicFolder;
DataFolder = cfg.dataFolder;
};
};
networking.firewall.allowedTCPPorts = lib.optionals cfg.openFirewall [ cfg.port ];
};
}