24.11 Vicuna

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-12-02 20:59:00 +01:00
parent 02c7814ce4
commit f828268b14
8 changed files with 78 additions and 76 deletions

View File

@@ -46,7 +46,7 @@
} else {};
hardware.opengl.extraPackages = if host == "NxXPS" then with pkgs; [
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "24.05") then vaapiIntel else intel-vaapi-driver)
(if (lib.versionOlder (lib.versions.majorMinor lib.version) "24.11") then vaapiIntel else intel-vaapi-driver)
libvdpau-va-gl
intel-media-driver
] else [];

View File

@@ -57,11 +57,10 @@ lib.mkIf nvidia.enable
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.beta; };
opengl = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
graphics = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
}

View File

@@ -19,7 +19,8 @@ in {
package = p;
enable = true;
acceleration = lib.mkIf nvidia.enable "cuda";
listenAddress = if host == "NxACE" then "0.0.0.0:11434" else "127.0.0.1:11434";
host = if host == "NxACE" then "0.0.0.0" else "127.0.0.1";
port = 11434;
environmentVariables = {
OLLAMA_ORIGINS = "*";
};