init: Add crossbox's configurations
This commit is contained in:
commit
b030b3a098
11 changed files with 652 additions and 0 deletions
22
ollama.nix
Normal file
22
ollama.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ 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
|
||||
security.pki.certificateFiles = [
|
||||
/home/brimlock/ollama-ca.crt
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue