1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

added LLM models and AI tools, disabled nextjs-ollama-ui, enabled Nvidia proprietary drivers

This commit is contained in:
xnm
2024-10-04 21:05:21 +03:00
parent f6c0b339a0
commit 71c7708495
5 changed files with 17 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ return {
source = { source = {
File = '/home/xnm/.config/wezterm/lain.gif', File = '/home/xnm/.config/wezterm/lain.gif',
}, },
opacity = 0.05, opacity = 0.02,
vertical_align = "Middle", vertical_align = "Middle",
horizontal_align = "Center", horizontal_align = "Center",
height = "1824", height = "1824",

View File

@@ -14,7 +14,7 @@
modules = [ modules = [
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
# ./nvidia.nix ./nvidia.nix
# ./disable-nvidia.nix # ./disable-nvidia.nix
./opengl.nix ./opengl.nix
# ./fingerprint-scanner.nix # ./fingerprint-scanner.nix

View File

@@ -4,6 +4,7 @@
# Linux Kernel # Linux Kernel
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen; boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
boot.kernelParams = [ boot.kernelParams = [
"splash"
"quiet" "quiet"
"fbcon=nodefer" "fbcon=nodefer"
"vt.global_cursor_default=0" "vt.global_cursor_default=0"

View File

@@ -2,9 +2,13 @@
{ {
services.ollama.enable = true; services.ollama.enable = true;
services.ollama.loadModels = [ "llama3.2" ]; services.ollama.loadModels = [ "llama3.2:3b" "dolphin-llama3:8b" "qwen2.5-coder:7b" "llava-llama3:8b" "phi3.5:3.8b" ];
services.ollama.acceleration = "cuda"; services.ollama.acceleration = "cuda";
services.nextjs-ollama-llm-ui.enable = true; environment.systemPackages = with pkgs; [
services.nextjs-ollama-llm-ui.port = 5000; oterm
alpaca
nextjs-ollama-llm-ui
aichat
];
} }

View File

@@ -19,14 +19,18 @@
# Experimental and only works on modern Nvidia GPUs (Turing or newer). # Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = true; powerManagement.finegrained = true;
# Dynamic Boost. It is a technology found in NVIDIA Max-Q design laptops with RTX GPUs.
# It intelligently and automatically shifts power between
# the CPU and GPU in real-time based on the workload of your game or application.
dynamicBoost.enable = lib.mkForce true;
# Use the NVidia open source kernel module (not to be confused with the # Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver). # independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of # Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at: # supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus # https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+ # Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting. # open = true;
open = true;
# Enable the Nvidia settings menu, # Enable the Nvidia settings menu,
# accessible via `nvidia-settings`. # accessible via `nvidia-settings`.
@@ -66,10 +70,6 @@
prime.offload.enableOffloadCmd = lib.mkForce false; prime.offload.enableOffloadCmd = lib.mkForce false;
prime.sync.enable = lib.mkForce true; prime.sync.enable = lib.mkForce true;
# Dynamic Boost. It is a technology found in NVIDIA Max-Q design laptops with RTX GPUs.
# It intelligently and automatically shifts power between
# the CPU and GPU in real-time based on the workload of your game or application.
dynamicBoost.enable = lib.mkForce true;
}; };
}; };
}; };