feat: Convert to a multi-host flake
This commit is contained in:
parent
c20fd46f9f
commit
b717ea973a
14 changed files with 416 additions and 27 deletions
24
hosts/crossbox/ollama.nix
Normal file
24
hosts/crossbox/ollama.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ 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
|
||||
# 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"
|
||||
# ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue