Watch
0
0
Fork
You've already forked hyperhive
0

module-eval: give the Grafana stand-in a mainProgram, so upstream's getExe stops warning

This commit is contained in:
damocles 2026-11-05 09:26:30 +01:00 • committed by mara
commit 3a77e869eb

View file

@ -18,6 +18,7 @@ let
nixosSystem
;
})
grafanaStub
hive
runGroup
;
@ -27,7 +28,7 @@ let
deploy.grafana.datasourceUrl = "http://127.0.0.1:19999";
deploy.grafana.logsDatasourceUrl = "http://127.0.0.1:19998";
deploy.grafana.plugins = [ ];
deploy.grafana.package = pkgs.emptyDirectory;
deploy.grafana.package = grafanaStub;
};
# A host that tries to move the socket directory; reading the option throws.
@ -35,7 +36,7 @@ let
deploy.grafana.enable = true;
deploy.grafana.socketDir = "/run/test-grafana-sock";
deploy.grafana.plugins = [ ];
deploy.grafana.package = pkgs.emptyDirectory;
deploy.grafana.package = grafanaStub;
};
# Same pairing `nix/module-eval/bao-otel-collector.nix` uses for its own
@ -55,7 +56,7 @@ let
grafanaWithAuthelia = hive {
deploy.grafana.enable = true;
deploy.grafana.plugins = [ ];
deploy.grafana.package = pkgs.emptyDirectory;
deploy.grafana.package = grafanaStub;
deploy.authelia.enable = true;
deploy.bao.clientCertFile = "/etc/pki/bao-client.pem";
deploy.bao.clientKeyFile = "/etc/pki/bao-client-key.pem";
@ -70,7 +71,7 @@ let
grafanaRemoteAuthelia = hive {
deploy.grafana.enable = true;
deploy.grafana.plugins = [ ];
deploy.grafana.package = pkgs.emptyDirectory;
deploy.grafana.package = grafanaStub;
swarm.authelia.url = "https://auth.example.invalid";
deploy.bao.clientCertFile = "/etc/pki/bao-client.pem";
deploy.bao.clientKeyFile = "/etc/pki/bao-client-key.pem";
@ -86,7 +87,7 @@ let
grafanaNoIdentity = hive {
deploy.grafana.enable = true;
deploy.grafana.plugins = [ ];
deploy.grafana.package = pkgs.emptyDirectory;
deploy.grafana.package = grafanaStub;
swarm.authelia.url = "https://auth.example.invalid";
# Declares a vhost that binds its own `listen`, which the gateway refuses.
gateway.vhosts."own-listen.t.local".listen = [ ];