nix-server/modules/services/mysql.nix
2024-11-01 19:54:41 -07:00

29 lines
No EOL
505 B
Nix

{ config, lib, pkgs, options, ... }:
with lib;
let
cfg = config.modules.services.mysql;
in {
options.modules.services.mysql = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf cfg.enable {
services.mysql = {
enable = true;
package = pkgs.mariadb_110;
settings = {
mysqld = {
max_allowed_packet = "128M";
};
client = {
max_allowed_packet = "128M";
};
};
};
};
}