26 lines
851 B
Nix
26 lines
851 B
Nix
{ 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;
|
|
};
|
|
};
|
|
}
|