updated mysql

This commit is contained in:
Adrian Lauterer 2024-06-24 12:20:26 +02:00
parent e5af2ed5d5
commit 2d66279421
2 changed files with 31 additions and 9 deletions

View File

@ -45,23 +45,21 @@
# Enable the CUDA toolkit # Enable the CUDA toolkit
#install packages #install packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
#cudaPackages.cudnn
cudaPackages.cudatoolkit cudaPackages.cudatoolkit
cudaPackages.cudnn cudaPackages.cudnn
nvtopPackages.nvidia nvtopPackages.nvidia
libxcrypt-legacy
gcc gcc
xgboostWithCuda
cudaPackages.setupCudaHook
cudaPackages.nccl cudaPackages.nccl
cudaPackages.markForCudatoolkitRootHook
cmake cmake
llama-cpp llama-cpp
python3Packages.pip python3Packages.pip
cudaPackages.cuda_cudart #cudaPackages.cuda_cudart
cudaPackages.cuda_cudart.static #xgboostWithCuda
pkgs.cudaPackages.libcublas #libxcrypt-legacy
#cudaPackages.setupCudaHook
#cudaPackages.markForCudatoolkitRootHook
#cudaPackages.cuda_cudart.static
#pkgs.cudaPackages.libcublas
#cudaPackages.tensorrt_8_6_0 #needs to be added manually, to the store and is a pain because of the license agreement and garbage collection #cudaPackages.tensorrt_8_6_0 #needs to be added manually, to the store and is a pain because of the license agreement and garbage collection
]; ];

View File

@ -11,6 +11,30 @@
services.mysql = { services.mysql = {
enable = true; enable = true;
package = pkgs.mariadb; package = pkgs.mariadb;
settings = {
mysql = {
local-infile = true;
default-character-set="utf8mb4";
};
mysqld = {
key_buffer_size = "6G";
table_cache = 1600;
log-error = "/var/log/mysql_err.log";
plugin-load-add = [ "server_audit" "ed25519=auth_ed25519" ];
collation-server = "utf8mb4_danish_ci";
local_infile = 1;
secure-file-priv = "";
sql_mode = "IGNORE_SPACE,STRICT_ALL_TABLES,NO_ENGINE_SUBSTITUTION";
init_connect = "SET NAMES 'utf8mb4' COLLATE 'utf8mb4_danish_ci'";
};
mysqldump = {
quick = true;
max_allowed_packet = "16M";
};
};
}; };