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

@@ -1,5 +1,7 @@
{ lib, config, proxyReverse, ... }:
let port = 8082;
let
port = 8082;
services = import ./homepage/services.nix { inherit config lib; };
in {
options.my.servers.homepage.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.homepage.enable {
@@ -32,16 +34,10 @@ in {
}
];
services = [{
"Multimedia" = [{
Audiobookshelf = lib.mkIf config.my.servers.audiobookshelf.enable {
href = config.my.servers.audiobookshelf.url;
widget = {
type = "audiobookshelf";
url = config.my.servers.audiobookshelf.local;
key = "{{HOMEPAGE_VAR_AUDIOBOOKSHELF}}";
};
};
}];
"Multimedia" = [
{ inherit (services) Audiobookshelf; }
{ inherit (services) Jellyfin; }
];
}];
};
nginx = {