tfc-nixos/modules/ollama.nix
2025-05-14 23:04:41 -05:00

31 lines
633 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"
# ];
# };
};
};
}