homepage: jellyfin init
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user