{ config, lib, pkgs, ... }: let cfg = config.services.gebos.frontend; in { options.services.gebos.frontend = { enable = lib.mkEnableOption "Gebos static SPA"; package = lib.mkOption { type = lib.types.package; default = pkgs.callPackage ../../frontend { }; }; }; config = lib.mkIf cfg.enable { # Nothing to install at the system level — Caddy serves the package's # `share/frontend` directory directly. See nix/hosts/app-host.nix. }; }