boron: run ollama service #306

Open
JakeHillion wants to merge 1 commits from ollama into main

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, nixpkgs-unstable, ... }:
{
imports = [
@ -124,6 +124,15 @@
};
users.users.jake.extraGroups = [ "podman" ];
## Ollama
services.ollama = {
enable = true;
package = nixpkgs-unstable.legacyPackages.x86_64-linux.ollama;
models = "/data/ollama/models";
writablePaths = [ "/data/ollama/models" ];
};
## Networking
boot.kernel.sysctl = {
"net.ipv4.ip_forward" = true;