This commit is contained in:
Reid 2024-11-01 19:54:26 -07:00
parent 1a53db8ce1
commit 91509baa59
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
6 changed files with 82 additions and 24 deletions

View file

@ -0,0 +1,29 @@
{ 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";
};
};
};
};
}