flake update
This commit is contained in:
1 parent
f529c59400
commit
436928b187
6 files changed
+47
-43
No files matched your search
@@ -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