diff --git a/homeConfigurations/muede/default.nix b/homeConfigurations/muede/default.nix index 4bfeea1..ba1c82c 100644 --- a/homeConfigurations/muede/default.nix +++ b/homeConfigurations/muede/default.nix @@ -72,7 +72,6 @@ arduino-cli arduino-ide btop - claude-code dconf2nix file foliate diff --git a/nixosConfigurations/muede-lpt2/claude.nix b/nixosConfigurations/muede-lpt2/claude.nix index 740f174..cc3835b 100644 --- a/nixosConfigurations/muede-lpt2/claude.nix +++ b/nixosConfigurations/muede-lpt2/claude.nix @@ -12,7 +12,7 @@ let # ./constellation-swarm.nix, so there is one place to change them. # Only those two are shared: the hive's `agent=` / `hive=` / `swarm=` resource # labels are deliberately not carried over. - hiveOtel = osConfig.services.hyperhive.deploy.swarm-otel.upstream; + hiveOtel = osConfig.services.hyperhive.otel; # Written by the `claude-otel-user-header` oneshot in that same module, which # copies the hive's root-only auth header into /run owned by this user. @@ -56,6 +56,13 @@ let # silently drop without a deltatocumulative processor. OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE = "cumulative"; OTEL_METRICS_INCLUDE_VERSION = "1"; + } + # Follow the hive's export cadence too, so retuning it stays a one-line + # change over in constellation-swarm.nix. Null there leaves claude-code's + # own 60s default. `debug` is pointedly not mirrored: the OTEL SDK's stderr + # diagnostics would scribble over an interactive TUI. + // lib.optionalAttrs (hiveOtel.metricIntervalMs != null) { + OTEL_METRIC_EXPORT_INTERVAL = toString hiveOtel.metricIntervalMs; }; exports = lib.concatStrings (