add bazarr

This commit is contained in:
Yan Lin 2025-12-10 22:39:39 +01:00
parent c02ba26953
commit d1e601f3a2
4 changed files with 34 additions and 0 deletions

View file

@ -107,6 +107,10 @@
name = "Lidarr";
url = "https://lidarr.yanlincs.com";
}
{
name = "Bazarr";
url = "https://bazarr.yanlincs.com";
}
{
name = "Deluge";
url = "https://deluge.yanlincs.com";

View file

@ -247,6 +247,7 @@
deluge.enable = true;
plex.enable = true;
lidarr.enable = true;
bazarr.enable = true;
};
# Borg backup configuration

View file

@ -90,6 +90,18 @@
};
};
# Bazarr subtitle management
bazarr = {
rule = "Host(`bazarr.yanlincs.com`)";
service = "bazarr";
tls = {
certResolver = "cloudflare";
domains = [{
main = "*.yanlincs.com";
}];
};
};
};
services = {
@ -157,6 +169,15 @@
};
};
# Bazarr backend
bazarr = {
loadBalancer = {
servers = [{
url = "http://lan.hs.yanlincs.com:6767";
}];
};
};
};
};

View file

@ -23,6 +23,7 @@ in
deluge.enable = lib.mkEnableOption "Deluge torrent client"; # web port 8112
plex.enable = lib.mkEnableOption "Plex media server"; # port 32400
lidarr.enable = lib.mkEnableOption "Lidarr music management"; # port 8686
bazarr.enable = lib.mkEnableOption "Bazarr subtitle management"; # port 6767
};
config = {
@ -75,5 +76,12 @@ in
group = cfg.group;
openFirewall = false;
};
services.bazarr = lib.mkIf cfg.bazarr.enable {
enable = true;
user = cfg.user;
group = cfg.group;
openFirewall = false;
};
};
}