23 lines
457 B
Nix
23 lines
457 B
Nix
# manages and downloads films
|
|
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.profiles.jellyseerr;
|
|
inherit (config.networking) domain;
|
|
in
|
|
{
|
|
options.my.profiles.jellyseerr = with lib; {
|
|
enable = mkEnableOption "JellySeerr Media Service";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.jellyseerr = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
systemd.services.jellyseerr = {
|
|
after = [ "network-online.target" ];
|
|
};
|
|
};
|
|
}
|