homepage plex widget
This commit is contained in:
parent
85ec0c0ff4
commit
049762bc4d
@ -83,7 +83,7 @@ in
|
||||
{
|
||||
"multimedia" = [
|
||||
{ inherit (services) jellyfin; }
|
||||
{ inherit (services) "now playing"; }
|
||||
{ inherit (services) plex; }
|
||||
{ inherit (services) audiobookshelf; }
|
||||
{ inherit (services) kavita; }
|
||||
];
|
||||
|
||||
@ -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
Loading…
x
Reference in New Issue
Block a user