diff --git a/hosts/boron.cx.ts.hillion.co.uk/default.nix b/hosts/boron.cx.ts.hillion.co.uk/default.nix index 95baa71..af9daba 100644 --- a/hosts/boron.cx.ts.hillion.co.uk/default.nix +++ b/hosts/boron.cx.ts.hillion.co.uk/default.nix @@ -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;