matomo!
This commit is contained in:
parent
1a53db8ce1
commit
91509baa59
6 changed files with 82 additions and 24 deletions
29
modules/services/mysql.nix
Normal file
29
modules/services/mysql.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue