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

This commit is contained in:
Jake Hillion 2024-08-09 22:36:27 +01:00
parent 39730d2ec3
commit 9cc30cb537

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, nixpkgs-unstable, ... }:
{
imports = [
@ -113,6 +113,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;