2025-04-28 00:36:43 +01:00
|
|
|
{ config, ... }:
|
|
|
|
|
2025-04-27 20:58:35 +01:00
|
|
|
{
|
2025-04-28 00:36:43 +01:00
|
|
|
services =
|
|
|
|
let
|
|
|
|
cfg = config.services.homepage-dashboard;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
homepage-dashboard = {
|
|
|
|
enable = true;
|
|
|
|
listenPort = 8097;
|
|
|
|
openFirewall = true;
|
2025-04-27 20:58:35 +01:00
|
|
|
|
2025-04-28 00:36:43 +01:00
|
|
|
services = (import ./services.nix { inherit config; });
|
|
|
|
widgets = import ./widgets.nix;
|
|
|
|
};
|
2025-04-27 20:58:35 +01:00
|
|
|
|
2025-04-28 00:36:43 +01:00
|
|
|
nginx.virtualHosts."nixedo.oliverdavies.uk" = {
|
|
|
|
forceSSL = true;
|
|
|
|
useACMEHost = "oliverdavies.uk";
|
2025-04-27 20:58:35 +01:00
|
|
|
|
2025-04-28 02:07:10 +01:00
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:${toString cfg.listenPort}";
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
};
|
2025-04-28 00:36:43 +01:00
|
|
|
};
|
2025-04-27 20:58:35 +01:00
|
|
|
};
|
|
|
|
}
|