2023-07-28 21:50:38 +02:00
|
|
|
{ config, pkgs, ... }: let
|
|
|
|
cfg = config.services.navidrome;
|
|
|
|
in {
|
|
|
|
services.navidrome = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
Address = "127.0.0.1";
|
|
|
|
Port = 4533;
|
|
|
|
MusicFolder = "/data2/media/music";
|
|
|
|
Prometheus.Enabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
local.socketActivation.navidrome = {
|
2024-01-23 05:31:26 +01:00
|
|
|
enable = cfg.enable;
|
2023-07-28 21:50:38 +02:00
|
|
|
originalSocketAddress = "${cfg.settings.Address}:${toString cfg.settings.Port}";
|
|
|
|
newSocketAddress = "/run/navidrome.sock";
|
|
|
|
privateNamespace = false;
|
|
|
|
};
|
|
|
|
}
|