homepage: jellyfin init
This commit is contained in:
25
modules/servers/homepage/services.nix
Normal file
25
modules/servers/homepage/services.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user