Feature: Added Jellyfin + Readarr Service

This commit is contained in:
marthsincemelee
2023-11-01 11:06:16 +01:00
parent 70076accf1
commit ef7fe9abc2
4 changed files with 53 additions and 0 deletions
+2
View File
@@ -14,6 +14,8 @@ in
};
radarr.enable = true;
docker.enable = true;
readarr.enable = true;
jellyfin.enable = true;
};
my.hardware = {
+2
View File
@@ -7,5 +7,7 @@
./prowlarr
./radarr
./docker
./readarr
./jellyfin
];
}
+23
View File
@@ -0,0 +1,23 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.jellyfin;
in
{
options.my.profiles.jellyfin = with lib; {
enable = mkEnableOption "Media Service";
};
config = lib.mkIf cfg.enable {
services.jellyfin = {
enable = true;
openFirewall = true;
};
systemd.services.jellyfin = {
after = [ "network-online.target" ];
};
};
}
+26
View File
@@ -0,0 +1,26 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.readarr;
# domain = config.networking.domain;
# port = 7878;
in
{
options.my.profiles.readarr = with lib; {
enable = mkEnableOption "Readarr for ebook management";
};
config = lib.mkIf cfg.enable {
services.readarr = {
enable = true;
openFirewall = true;
};
my.profiles.prowlarr.enable = true;
systemd.services.readarr = {
after = [ "network-online.target" ];
};
};
}