2024-09-02 18:31:19 +05:30
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
options.snowflake.services.arr = {
|
|
|
|
enable = lib.mkEnableOption "Enable arr suite configuration";
|
2024-09-02 19:14:35 +05:30
|
|
|
monitoring = {
|
|
|
|
enable = lib.mkEnableOption "Enable monitoring for arr suite";
|
|
|
|
sonarrApiKeyFile = lib.mkOption {
|
|
|
|
description = "Age module containing the sonarr API Key to use for monitoring";
|
2024-09-02 18:31:19 +05:30
|
|
|
};
|
2024-09-02 19:14:35 +05:30
|
|
|
radarrApiKeyFile = lib.mkOption {
|
|
|
|
description = "Age module containing the radarr API Key to use for monitoring";
|
2024-09-02 18:31:19 +05:30
|
|
|
};
|
2024-09-02 19:14:35 +05:30
|
|
|
};
|
|
|
|
};
|
2024-09-02 18:31:19 +05:30
|
|
|
|
2024-09-02 19:14:35 +05:30
|
|
|
config = lib.mkIf config.snowflake.services.arr.enable {
|
|
|
|
snowflake.services = {
|
|
|
|
jellyfin.enable = true;
|
|
|
|
jellyseerr.enable = true;
|
|
|
|
radarr.enable = true;
|
|
|
|
sonarr.enable = true;
|
|
|
|
prowlarr.enable = true;
|
|
|
|
qbittorrent-nox = {
|
2024-09-02 18:31:19 +05:30
|
|
|
enable = true;
|
2024-09-02 19:14:35 +05:30
|
|
|
openFirewall = true;
|
2024-09-02 18:31:19 +05:30
|
|
|
};
|
|
|
|
};
|
2024-09-02 19:14:35 +05:30
|
|
|
};
|
2024-09-02 18:31:19 +05:30
|
|
|
}
|