From 59180328cda59817d71cd58c8f48ead047375064 Mon Sep 17 00:00:00 2001 From: azahi Date: Mon, 17 Feb 2025 02:21:56 +0300 Subject: 2025-02-17 --- modules/clickhouse.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'modules/clickhouse.nix') diff --git a/modules/clickhouse.nix b/modules/clickhouse.nix index 6bb53bb..f08678d 100644 --- a/modules/clickhouse.nix +++ b/modules/clickhouse.nix @@ -5,19 +5,16 @@ this, ... }: -with lib; let cfg = config.nixfiles.modules.clickhouse; in { options.nixfiles.modules.clickhouse = { - enable = mkEnableOption "Clickhouse"; + enable = lib.mkEnableOption "Clickhouse"; }; - config = mkIf cfg.enable { - services.clickhouse = { - enable = true; - }; + config = lib.mkIf cfg.enable { + services.clickhouse.enable = true; topology = { nodes.${this.hostname}.services.clickhouse = { -- cgit 1.4.1