fix(channel-scripts): fix RUST_LOG=info
Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
c2ad3d6d26
commit
a14f496db8
|
@ -1,6 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }:
|
{ lib, config, pkgs, ... }:
|
||||||
|
# FIXME(raito): I'm really really really not happy with this design of NixOS module, clean up all of this someday.
|
||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkOption types mkIf mapAttrsToList mkPackageOption concatStringsSep;
|
inherit (lib) mkEnableOption mkOption types mkIf mapAttrsToList mkPackageOption concatStringsSep mkMerge;
|
||||||
cfg = config.bagel.nixpkgs.channel-scripts;
|
cfg = config.bagel.nixpkgs.channel-scripts;
|
||||||
toml = pkgs.formats.toml { };
|
toml = pkgs.formats.toml { };
|
||||||
configFile = toml.generate "forkos.toml" cfg.settings;
|
configFile = toml.generate "forkos.toml" cfg.settings;
|
||||||
|
@ -135,15 +136,17 @@ in
|
||||||
|
|
||||||
extraEnvironment = mkOption {
|
extraEnvironment = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [
|
|
||||||
"RUST_LOG=info"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
bagel.nixpkgs.channel-scripts.extraEnvironment = mkIf cfg.otlp.enable [
|
bagel.nixpkgs.channel-scripts.extraEnvironment = mkMerge [
|
||||||
|
([
|
||||||
|
"RUST_LOG=info"
|
||||||
|
])
|
||||||
|
(mkIf cfg.otlp.enable [
|
||||||
''OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="https://tempo.forkos.org/v1/traces"''
|
''OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="https://tempo.forkos.org/v1/traces"''
|
||||||
|
])
|
||||||
];
|
];
|
||||||
bagel.nixpkgs.channel-scripts.settings = {
|
bagel.nixpkgs.channel-scripts.settings = {
|
||||||
hydra_uri = cfg.hydraUrl;
|
hydra_uri = cfg.hydraUrl;
|
||||||
|
|
Loading…
Reference in a new issue