homepage plex widget

This commit is contained in:
Danilo Reyes 2024-11-29 22:27:24 -06:00
parent 85ec0c0ff4
commit 049762bc4d
3 changed files with 18 additions and 23 deletions

View File

@ -83,7 +83,7 @@ in
{
"multimedia" = [
{ inherit (services) jellyfin; }
{ inherit (services) "now playing"; }
{ inherit (services) plex; }
{ inherit (services) audiobookshelf; }
{ inherit (services) kavita; }
];

View File

@ -13,6 +13,19 @@
key = "{{HOMEPAGE_VAR_AUDIOBOOKSHELF}}";
};
};
plex =
let
cfg = config.my.servers.plex;
in
lib.mkIf (cfg.enable || cfg.enableProxy) {
icon = "${cfg.name}.png";
href = cfg.url;
widget = {
inherit (cfg) url;
type = cfg.name;
key = "{{HOMEPAGE_VAR_PLEX}}";
};
};
jellyfin =
let
cfg = config.my.servers.jellyfin;
@ -29,24 +42,6 @@
enableNowPlaying = false;
};
};
"now playing" =
let
cfg = config.my.servers.jellyfin;
in
lib.mkIf (cfg.enable || cfg.enableProxy) {
icon = "${cfg.name}.png";
href = cfg.url;
widget = {
inherit (cfg) url;
type = cfg.name;
key = "{{HOMEPAGE_VAR_JELLYFIN}}";
enableUser = true;
enableBlocks = false;
enableNowPlaying = true;
showEpisodeNumber = true;
expandOneStreamToTwoRows = true;
};
};
sonarr =
let
cfg = config.my.servers.sonarr;

File diff suppressed because one or more lines are too long