Fixed wsl ollama + gpu driver
This commit is contained in:
parent
36e429a51f
commit
779176b96f
1 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,7 @@
|
||||||
wsl = {
|
wsl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultUser = "nixos";
|
defaultUser = "nixos";
|
||||||
|
useWindowsDriver = true;
|
||||||
};
|
};
|
||||||
programs.nh = {
|
programs.nh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -65,7 +66,7 @@
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
loadModels = [ "llama3.1" ];
|
loadModels = [ "llama3.1" ];
|
||||||
home = "/home/nixos/ollama";
|
acceleration = "cuda";
|
||||||
user = "ollama";
|
user = "ollama";
|
||||||
group = "ollama";
|
group = "ollama";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue