feat(server): add mkWebApp module and glance web app

This commit is contained in:
Mohammad Rafiq 2025-06-16 14:22:19 +08:00
parent 29c652e615
commit 2292baecf6
No known key found for this signature in database
3 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{ lib, config, ... }:
let
inherit (lib.pantheon.modules) mkWebApp;
cfg = config.server.web-apps.glance;
in
mkWebApp {
inherit config;
name = "glance";
defaultPort = 8080;
extraConfig = {
services.glance = {
enable = true;
settings.server.host = "0.0.0.0";
settings.server.port = cfg.port;
};
};
}