aboutsummaryrefslogtreecommitdiff
path: root/modules/private/databases/default.nix
blob: 78d91dc5e03077f863b97b2a5ae75d65a9395d60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib, config, ... }:
let
  cfg = config.myServices.databases;
in
{
  options.myServices = {
    databases.enable = lib.mkEnableOption "my databases service";
    databasesCerts = lib.mkOption {
      description = "Default databases configurations for certificates as accepted by acme";
    };
  };
  config.myServices.databases = lib.mkIf cfg.enable {
    mariadb.enable = true;
    openldap.enable = true;
    postgresql.enable = true;
    redis.enable = true;
  };
}