flakes/modules/nixos/services/arr/default.nix
Chinmay D. Pai 3408ceb62c
feat: add nix module for arr suite
Can finally deploy:
* Jellyfin
* Jellyseerr
* Radarr, Prowlarr, Sonarr, Bazarr
* QBitTorrent + VueTorrent

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2024-09-02 19:14:35 +05:30

33 lines
843 B
Nix

{
config,
lib,
...
}: {
options.snowflake.services.arr = {
enable = lib.mkEnableOption "Enable arr suite configuration";
monitoring = {
enable = lib.mkEnableOption "Enable monitoring for arr suite";
sonarrApiKeyFile = lib.mkOption {
description = "Age module containing the sonarr API Key to use for monitoring";
};
radarrApiKeyFile = lib.mkOption {
description = "Age module containing the radarr API Key to use for monitoring";
};
};
};
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 = {
enable = true;
openFirewall = true;
};
};
};
}