Update Cfg and add proxy/wsl

This commit is contained in:
soraefir
2026-05-30 17:48:18 +02:00
parent d9e7775afc
commit 4217227070
18 changed files with 136 additions and 20 deletions

View File

@@ -0,0 +1,40 @@
{ config, containerCfg, pkgs, lib, builder, name,... }:
let
version = "latest";
serverCfg = config.syscfg.server;
settings = pkgs.writers.writeYAML "settings.yaml" {
title = "My Self-Hosted Dashboard";
base = "";
theme = "dark";
# Nested structures transfer natively to YAML blocks
# layout = {
# Infrastructure = {
# style = "grid";
# columns = 3;
# };
# };
};
in {
sops = false;
db = false;
containers = {
server = builder.mkContainer {
subdomain = containerCfg.subdomain;
image = "ghcr.io/gethomepage/homepage:${version}";
port = 3000;
# extraEnv = { };
extraLabels = {
"traefik.http.routers.${containerCfg.subdomain}.service" = "${containerCfg.subdomain}";
};
overrides = {
volumes = [
"${settings}:/app/config/settings.yaml:ro"
];
};
};
};
}