flake update
This commit is contained in:
@@ -12,12 +12,12 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration =
|
||||
package =
|
||||
if config.services.xserver.videoDrivers == ["amdgpu"]
|
||||
then "rocm"
|
||||
then pkgs.ollama-rocm
|
||||
else if config.services.xserver.videoDrivers == ["nvidia"]
|
||||
then "cuda"
|
||||
else null;
|
||||
then pkgs.ollama-cuda
|
||||
else pkgs.ollama-cpu;
|
||||
host = "[::]";
|
||||
openFirewall = true;
|
||||
environmentVariables = {
|
||||
|
||||
Reference in New Issue
Block a user