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