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

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

View File

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

View File

@@ -2,9 +2,13 @@
{
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.nextjs-ollama-llm-ui.enable = true;
services.nextjs-ollama-llm-ui.port = 5000;
environment.systemPackages = with pkgs; [
oterm
alpaca
nextjs-ollama-llm-ui
aichat
];
}

View File

@@ -19,14 +19,18 @@
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
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
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# 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,
# accessible via `nvidia-settings`.
@@ -66,10 +70,6 @@
prime.offload.enableOffloadCmd = lib.mkForce false;
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;
};
};
};