update glance for service move
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
service = "jellyfin";
|
service = "jellyfin";
|
||||||
cfg = config.homelab.${service};
|
cfg = config.homelab.${service};
|
||||||
homelab = config.homelab;
|
homelab = config.homelab;
|
||||||
|
host = config.networking.hostName;
|
||||||
in {
|
in {
|
||||||
options.homelab.${service} = {
|
options.homelab.${service} = {
|
||||||
enable = lib.mkEnableOption "enables ${service}";
|
enable = lib.mkEnableOption "enables ${service}";
|
||||||
@@ -85,7 +86,7 @@ in {
|
|||||||
homelab.glance.links.mediastack = [
|
homelab.glance.links.mediastack = [
|
||||||
{
|
{
|
||||||
title = service;
|
title = service;
|
||||||
url = "https://media.${homelab.public_domain}";
|
url = "https://media.${host}.${homelab.public_domain}";
|
||||||
error-url = "http://${homelab.host_ip}:${toString cfg.port}";
|
error-url = "http://${homelab.host_ip}:${toString cfg.port}";
|
||||||
check-url = "http://${homelab.host_ip}:${toString cfg.port}";
|
check-url = "http://${homelab.host_ip}:${toString cfg.port}";
|
||||||
icon = "di:${service}";
|
icon = "di:${service}";
|
||||||
|
|||||||
Reference in New Issue
Block a user