All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m47s
38 lines
681 B
Nix
38 lines
681 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (lib)
|
|
mkEnableOption
|
|
mkIf
|
|
;
|
|
cfg = config.modules.services.music-assistant;
|
|
in
|
|
{
|
|
options.modules.services.music-assistant.enable = mkEnableOption "music-assistant";
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
nginx.virtualHosts."music-assistant.${config.networking.hostName}" = {
|
|
extraConfig = ''
|
|
proxy_buffering off;
|
|
'';
|
|
locations."/" = {
|
|
proxyPass = "http://[::1]:8095";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
music-assistant = {
|
|
enable = true;
|
|
providers = [
|
|
"hass"
|
|
"jellyfin"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|