init repos
This commit is contained in:
17
modules/hardware/ollama.nix
Normal file
17
modules/hardware/ollama.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
host = "0.0.0.0";
|
||||
port = 11434;
|
||||
user = "ollama";
|
||||
group = "ollama";
|
||||
};
|
||||
|
||||
# Fix ownership on the externally mounted disk at /var/lib/private/ollama
|
||||
systemd.tmpfiles.rules = [
|
||||
"Z /var/lib/private/ollama 0750 ollama ollama -"
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 11434 ];
|
||||
}
|
||||
Reference in New Issue
Block a user