{ config, inputs, lib, this, ... }: with lib; let cfg = config.nixfiles.modules.clickhouse; in { options.nixfiles.modules.clickhouse = { enable = mkEnableOption "Clickhouse"; }; config = mkIf cfg.enable { services.clickhouse = { enable = true; }; topology = { nodes.${this.hostname}.services.clickhouse = { name = "ClickHouse"; icon = "${inputs.homelab-svg-assets}/assets/postgresql.svg"; details.listen.text = "127.0.0.1:8123"; }; }; }; }