32 lines
514 B
Nix
32 lines
514 B
Nix
# manages and downloads films
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.profiles.radarr;
|
|
in
|
|
# domain = config.networking.domain;
|
|
# port = 7878;
|
|
{
|
|
options.my.profiles.radarr = with lib; {
|
|
enable = mkEnableOption "Sonarr for films management";
|
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.radarr = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
my.profiles.prowlarr.enable = true;
|
|
|
|
systemd.services.radarr = {
|
|
after = [ "network-online.target" ];
|
|
};
|
|
};
|
|
}
|