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