boron: run ollama service
All checks were successful
flake / flake (push) Successful in 1m46s

This commit is contained in:
Jake Hillion 2024-11-08 12:33:13 +00:00
parent 843802bcb7
commit c32ce8861c

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;