diff options
Diffstat (limited to 'modules/private/databases/default.nix')
-rw-r--r-- | modules/private/databases/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/private/databases/default.nix b/modules/private/databases/default.nix new file mode 100644 index 0000000..78d91dc --- /dev/null +++ b/modules/private/databases/default.nix | |||
@@ -0,0 +1,18 @@ | |||
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 | } | ||