homepage cfg
This commit is contained in:
@@ -7,8 +7,6 @@ let
|
|||||||
title = "My Self-Hosted Dashboard";
|
title = "My Self-Hosted Dashboard";
|
||||||
base = "";
|
base = "";
|
||||||
theme = "dark";
|
theme = "dark";
|
||||||
|
|
||||||
# Nested structures transfer natively to YAML blocks
|
|
||||||
# layout = {
|
# layout = {
|
||||||
# Infrastructure = {
|
# Infrastructure = {
|
||||||
# style = "grid";
|
# style = "grid";
|
||||||
@@ -16,6 +14,24 @@ let
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = pkgs.writers.writeYAML "services.yaml" {
|
||||||
|
media = []
|
||||||
|
++ (if (serverCfg.containers.jellyfin) then [{
|
||||||
|
icon = "jellyfin.png";
|
||||||
|
href = "https://${serverCfg.containers.jellyfin.subdomain}.${serverCfg.domain}";
|
||||||
|
}] else []);
|
||||||
|
dev = []
|
||||||
|
++ (if (serverCfg.containers.gitea) then [{
|
||||||
|
icon = "gitea.png";
|
||||||
|
href = "https://${serverCfg.containers.gitea.subdomain}.${serverCfg.domain}";
|
||||||
|
}] else []);
|
||||||
|
cloud = []
|
||||||
|
++ (if (serverCfg.containers.nextcloud) then [{
|
||||||
|
icon = "nextcloud.png";
|
||||||
|
href = "https://${serverCfg.containers.nextcloud.subdomain}.${serverCfg.domain}";
|
||||||
|
}] else []);
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
sops = false;
|
sops = false;
|
||||||
db = false;
|
db = false;
|
||||||
@@ -26,6 +42,8 @@ in {
|
|||||||
image = "ghcr.io/gethomepage/homepage:${version}";
|
image = "ghcr.io/gethomepage/homepage:${version}";
|
||||||
port = 3000;
|
port = 3000;
|
||||||
extraEnv = {
|
extraEnv = {
|
||||||
|
HOMEPAGE_VAR_TITLE="${serverCfg.domain}";
|
||||||
|
HOMEPAGE_VAR_THEME=
|
||||||
HOMEPAGE_ALLOWED_HOSTS = "${containerCfg.subdomain}.${serverCfg.domain},${builder.host}";
|
HOMEPAGE_ALLOWED_HOSTS = "${containerCfg.subdomain}.${serverCfg.domain},${builder.host}";
|
||||||
};
|
};
|
||||||
extraLabels = {
|
extraLabels = {
|
||||||
@@ -34,6 +52,7 @@ in {
|
|||||||
overrides = {
|
overrides = {
|
||||||
volumes = [
|
volumes = [
|
||||||
"${settings}:/app/config/settings.yaml:ro"
|
"${settings}:/app/config/settings.yaml:ro"
|
||||||
|
"${services}:/app/config/services.yaml:ro"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user