Skip to content

Commit

Permalink
feat: support USE_ANALYTICS
Browse files Browse the repository at this point in the history
  • Loading branch information
thecaralice committed Oct 16, 2024
1 parent 5edd09c commit d956bba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ in
type = types.str;
default = "INFO";
};
use-analytics = lib.mkEnableOption "analytics";
};
domain =
let
Expand Down Expand Up @@ -234,7 +235,8 @@ in
CLICKHOUSE_USER = "trieve";
CLICKHOUSE_DB = "trieve";
CLICKHOUSE_URL = "http://localhost:8123"; # TODO: use port from config
};
USE_ANALYTICS = lib.boolToString cfg.server.use-analytics;
} // cfg.server.environment;
};
};
}

0 comments on commit d956bba

Please sign in to comment.