nixos-config/hosts/crossbox/ollama.nix

25 lines
567 B
Nix
Raw Normal View History

2026-01-08 19:41:55 -08:00
{ config, pkgs, lib, ... }:
{
services.ollama = {
enable = true;
host = "0.0.0.0";
port = 11434;
};
# Open firewall port for Ollama
networking.firewall.allowedTCPPorts = [ 11434 ];
# Install ollama-rocm package
environment.systemPackages = with pkgs; [
ollama-rocm
];
# Add CA certificate for Ollama
2026-02-10 06:10:33 -08:00
# Note: Path must be accessible at runtime, not build time
# You can copy the cert to /etc/nixos/ and reference it, or use a string path
# security.pki.certificateFiles = [
# "/home/brimlock/ollama-ca.crt"
# ];
2026-01-08 19:41:55 -08:00
}