feat: Homepage
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
}:
|
||||
let
|
||||
cfg = config.my.profiles.jellyfin;
|
||||
hostName = config.networking.hostName;
|
||||
port = 8096;
|
||||
in
|
||||
{
|
||||
options.my.profiles.jellyfin = with lib; {
|
||||
@@ -20,6 +22,15 @@ in
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
my.homepage.services = [
|
||||
{
|
||||
group = "Media";
|
||||
name = "Jellyfin";
|
||||
description = "Media server";
|
||||
href = "http://${hostName}:${toString port}";
|
||||
}
|
||||
];
|
||||
|
||||
systemd.services.jellyfin = {
|
||||
after = [ "network-online.target" ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user