-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathllm.nix
More file actions
28 lines (26 loc) · 785 Bytes
/
Copy pathllm.nix
File metadata and controls
28 lines (26 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# packages/apps.nix - Application packages
# ============================================================================
{pkgs, ...}: let
# Unstable channel packages
pkgs-unstable = import <nixos-unstable> {
config = {
allowUnfree = true;
};
};
in {
# To edit use your text editor application, for example Nano
services.ollama = {
package = pkgs-unstable.ollama; # If you want to use the unstable channel package for example
enable = true;
acceleration = "cuda";
#};
};
# The Ollama environment variables, as mentioned in the comments section
systemd.services.ollama.serviceConfig = {
Environment = ["OLLAMA_HOST=0.0.0.0:11434"];
};
# Add oterm to the systemPackages
environment.systemPackages = with pkgs; [
oterm
];
}