Updated ai config to use 1080ti with ollama

This commit is contained in:
Random936
2026-02-13 15:14:06 -05:00
parent 32dcd80519
commit b062663705
2 changed files with 36 additions and 10 deletions

View File

@@ -13,9 +13,35 @@
users.users.mindforge = import ./user.nix; users.users.mindforge = import ./user.nix;
# Setup drivers for NVIDIA GPU
services.xserver = {
enable = false;
videoDrivers = [ "nvidia" ];
};
hardware = {
nvidia = {
open = false;
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
nvidiaSettings = true;
};
graphics = {
enable = true;
enable32Bit = true;
};
};
services.ollama = { services.ollama = {
enable = true; enable = true;
host = "0.0.0.0"; acceleration = "cuda";
package = pkgs.ollama-cuda.override {
cudaArches = [
"61"
];
};
openFirewall = true; openFirewall = true;
environmentVariables = { environmentVariables = {
OLLAMA_CONTEXT_LENGTH = "8192"; OLLAMA_CONTEXT_LENGTH = "8192";

View File

@@ -13,16 +13,16 @@
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-uuid/b98eb7bb-f58c-4862-a234-1d72c9ff1187"; device = "/dev/disk/by-partlabel/root";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-uuid/3D03-9579"; device = "/dev/disk/by-partlabel/EFI";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = [ ]; swapDevices = [ ];