about summary refs log tree commit diff
path: root/modules/nixos/clickhouse.nix
blob: 4fae68391fc645c154fe69a1e15776b00949b1dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.clickhouse;
in {
  options.nixfiles.modules.clickhouse = {
    enable = mkEnableOption "Clickhouse";
  };

  config = mkIf cfg.enable {
    services.clickhouse = {
      enable = true;
    };
  };
}

Consider giving Nix/NixOS a try! <3