nix-config/hosts/nixedo/services/homepage/default.nix

26 lines
545 B
Nix
Raw Normal View History

2025-04-28 00:36:43 +01:00
{ config, ... }:
{
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-28 00:36:43 +01:00
services = (import ./services.nix { inherit config; });
widgets = import ./widgets.nix;
};
2025-04-28 00:36:43 +01:00
nginx.virtualHosts."nixedo.oliverdavies.uk" = {
forceSSL = true;
useACMEHost = "oliverdavies.uk";
locations."/".proxyPass = "http://localhost:${toString cfg.listenPort}";
2025-04-28 00:36:43 +01:00
};
};
}