1
0
Fork 0

fix arr config

This commit is contained in:
ibizaman 2023-09-25 23:15:36 -07:00
parent ad6809fc5d
commit fda0daf6d3

View file

@ -5,10 +5,10 @@ let
apps = { apps = {
radarr = { radarr = {
defaultPort = 8989; defaultPort = 7878;
}; };
sonarr = { sonarr = {
defaultPort = 7878; defaultPort = 8989;
}; };
bazarr = { bazarr = {
defaultPort = 6767; defaultPort = 6767;
@ -64,18 +64,18 @@ in
options.shb.arr = lib.listToAttrs (lib.mapAttrsToList appOption apps); options.shb.arr = lib.listToAttrs (lib.mapAttrsToList appOption apps);
config = { config = {
# Listens on port 8989
services.sonarr = lib.mkIf cfg.sonarr.enable {
enable = true;
dataDir = "/var/lib/sonarr";
};
# Listens on port 7878 # Listens on port 7878
services.radarr = lib.mkIf cfg.radarr.enable { services.radarr = lib.mkIf cfg.radarr.enable {
enable = true; enable = true;
dataDir = "/var/lib/radarr"; dataDir = "/var/lib/radarr";
}; };
# Listens on port 8989
services.sonarr = lib.mkIf cfg.sonarr.enable {
enable = true;
dataDir = "/var/lib/sonarr";
};
services.bazarr = lib.mkIf cfg.bazarr.enable { services.bazarr = lib.mkIf cfg.bazarr.enable {
enable = true; enable = true;
listenPort = cfg.bazarr.port; listenPort = cfg.bazarr.port;