feat: fixed syntax error

This commit is contained in:
Nick 2025-07-09 04:17:42 -05:00
parent 480a6f4775
commit f06237173f

View file

@ -22,11 +22,7 @@ let
keyword = instances.${name}.short; keyword = instances.${name}.short;
}) (builtins.map (service: instances.${service}.name) services); }) (builtins.map (service: instances.${service}.name) services);
bookmarkConfigs = bookmarkConfigs = [
let
port = name: toString instances.${name}.ports.port0;
in
[
{ {
suffix = "(Remote)"; suffix = "(Remote)";
urlTemplate = name: "https://${instances.${name}.domains.url0}"; urlTemplate = name: "https://${instances.${name}.domains.url0}";
@ -46,7 +42,7 @@ let
} }
{ {
suffix = "(Desktop)"; suffix = "(Desktop)";
urlTemplate = "http://${mars.ip.address0}:${port}"; urlTemplate = name: "http://${mars.ip.address0}:${builtins.toString instances.${name}.ports.port0}";
services = [ services = [
"ollama" "ollama"
"syncthing" "syncthing"
@ -54,14 +50,16 @@ let
} }
{ {
suffix = "(Server)"; suffix = "(Server)";
urlTemplate = "http://${ceres.ip.address0}:${port}"; urlTemplate =
name: "http://${ceres.ip.address0}:${builtins.toString instances.${name}.ports.port0}";
services = [ services = [
"jellyfin" "jellyfin"
]; ];
} }
{ {
suffix = "(Synology)"; suffix = "(Synology)";
urlTemplate = "http://${synology.ip.address0}:${port}"; urlTemplate =
name: "http://${synology.ip.address0}:${builtins.toString instances.${name}.ports.port0}";
services = [ services = [
"syncthing" "syncthing"
]; ];