depot/hosts/VEGAS/modules/database/default.nix

18 lines
387 B
Nix
Raw Normal View History

2021-10-16 23:24:00 +03:00
{ lib, pkgs, ... }:
{
services.postgresql = {
enable = true;
enableTCPIP = true;
checkConfig = true;
package = pkgs.postgresql_12;
dataDir = "/srv/storage/database/postgres-12/data";
};
2022-01-11 19:37:12 +02:00
services.mysql = {
2022-07-31 21:37:43 +03:00
enable = false;
2022-05-30 23:16:42 +03:00
settings.mysqld.bind-address = "127.0.0.1";
2022-01-11 19:37:12 +02:00
package = pkgs.mariadb;
dataDir = "/srv/storage/database/mariadb/data";
};
2021-10-16 23:24:00 +03:00
}