diff --git a/machines/boromir/nvidia.nix b/machines/boromir/nvidia.nix index a2c85a9..c8e9569 100644 --- a/machines/boromir/nvidia.nix +++ b/machines/boromir/nvidia.nix @@ -45,23 +45,21 @@ # Enable the CUDA toolkit #install packages environment.systemPackages = with pkgs; [ - #cudaPackages.cudnn cudaPackages.cudatoolkit cudaPackages.cudnn nvtopPackages.nvidia - libxcrypt-legacy gcc - xgboostWithCuda - cudaPackages.setupCudaHook cudaPackages.nccl - cudaPackages.markForCudatoolkitRootHook cmake llama-cpp python3Packages.pip - cudaPackages.cuda_cudart - cudaPackages.cuda_cudart.static - pkgs.cudaPackages.libcublas - + #cudaPackages.cuda_cudart + #xgboostWithCuda + #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 ]; diff --git a/services/mysql.nix b/services/mysql.nix index fb7e5f0..173763e 100644 --- a/services/mysql.nix +++ b/services/mysql.nix @@ -11,6 +11,30 @@ services.mysql = { enable = true; 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"; + }; + }; + + };