]>
Commit | Line | Data |
---|---|---|
182ae57f IB |
1 | { lib, config, ... }: |
2 | let | |
3 | cfg = config.myServices.databases; | |
4 | in | |
5 | { | |
6 | options.myServices = { | |
7 | databases.enable = lib.mkEnableOption "my databases service"; | |
8 | databasesCerts = lib.mkOption { | |
9 | description = "Default databases configurations for certificates as accepted by acme"; | |
10 | }; | |
11 | }; | |
12 | config.myServices.databases = lib.mkIf cfg.enable { | |
13 | mariadb.enable = true; | |
14 | openldap.enable = true; | |
15 | postgresql.enable = true; | |
16 | redis.enable = true; | |
17 | }; | |
18 | } |