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

This commit is contained in:
Jake Hillion 2024-08-09 22:36:27 +01:00
parent 3d642e2320
commit 2c71c5940c

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, nixpkgs-unstable, ... }:
{
imports = [
@ -82,6 +82,15 @@
fileSystems = [ "/data" ];
};
## 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;