summary refs log tree commit diff
path: root/services/monitoring/wrapper.nix
blob: 62c860bdecc644bebc24cf5bf61c31fad791b5c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This wraps the monitoring service module to allow it to be
# imported conditionally.
{ me, lib, pkgs, auxiliaryPkgs, config, ... }:

let
  enabled = config.foundation.internal.monitoringService;
  module = import ./.;
in
{
  options.foundation.internal = {
    monitoringService = lib.mkEnableOption "monitoring service";
  };

  config = lib.mkIf enabled (module { inherit me lib pkgs auxiliaryPkgs; });
}
an>, Real window_aspect); void render() const; private: static GFX::Mesh create_mesh(Real window_aspect, U32 image_width, U32 image_height); static constexpr Real view_size = 1000.0f; static const Char* vertex; static const Char* fragment; GFX::BindableMesh m_mesh; GFX::Shading::Program m_program; GFX::Texture m_texture; }; }