29 lines
No EOL
505 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |