homepage: jellyfin init

This commit is contained in:
2024-07-05 22:22:42 -06:00
parent a02bbd1cc9
commit de81b95a77
6 changed files with 76 additions and 57 deletions

View File

@@ -0,0 +1,25 @@
{ config, lib, ... }: {
Audiobookshelf = lib.mkIf config.my.servers.audiobookshelf.enable {
icon = "${config.my.servers.audiobookshelf.name}.png";
href = config.my.servers.audiobookshelf.url;
widget = {
type = config.my.servers.audiobookshelf.name;
url = config.my.servers.audiobookshelf.local;
key = "{{HOMEPAGE_VAR_AUDIOBOOKSHELF}}";
};
};
Jellyfin = lib.mkIf config.my.servers.jellyfin.enable {
icon = "${config.my.servers.jellyfin.name}.png";
href = config.my.servers.jellyfin.url;
widget = {
type = config.my.servers.jellyfin.name;
url = config.my.servers.jellyfin.local;
key = "{{HOMEPAGE_VAR_JELLYFIN}}";
enableBlocks = true;
enableNowPlaying = true;
enableUser = true;
showEpisodeNumber = true;
expandOneStreamToTwoRows = false;
};
};
}