Feature: Jellyseerr Service

This commit is contained in:
2023-11-22 19:12:58 +01:00
parent 246927fc11
commit 5ab19e678c
3 changed files with 25 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ in
readarr.enable = true;
sonarr.enable = true;
jellyfin.enable = true;
jellyseerr.enable = true;
};
my.hardware = {
+1
View File
@@ -10,5 +10,6 @@
./readarr
./sonarr
./jellyfin
./jellyseerr
];
}
@@ -0,0 +1,23 @@
# 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" ];
};
};
}