tfc-nixos/modules/ollama.nix
2025-04-03 13:51:16 -05:00

31 lines
611 B
Nix

{ config, lib, pkgs, unstable, ... }:
with lib;
{
services = {
ollama = {
enable = true;
host = "0.0.0.0";
# package = unstable.ollama;
# port = 11434;
acceleration = "cuda";
};
open-webui = {
enable = true;
port = 3082;
host = "0.0.0.0";
package = unstable.open-webui.overrideAttrs {
pytestCheckPhase = false;
doCheck = false;
doInstallCheck = false;
nativeCheckInputs = [];
pythonImportsCheck = [];
passthru = {};
disabledTests = [
"async"
];
};
};
};
}