nixos/services/ollama.nix

20 lines
540 B
Nix
Raw Normal View History

2026-05-12 13:34:07 +01:00
{ config, pkgs, lib, ... }:
{
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
services.ollama.enable = true;
2026-05-12 13:44:55 +01:00
services.ollama.acceleration = "cuda";
2026-05-12 13:34:07 +01:00
2026-05-12 13:54:08 +01:00
services.open-webui.enable = true;
services.open-webui.port = 8888;
2026-05-12 15:17:01 +01:00
#testing
nixpkgs.overlays = [
(final: prev: {
valkey = prev.valkey.overrideAttrs (oldAttrs: {
doCheck = false; # Disables the failing dual channel sync test
});
})
];
2026-05-12 13:34:38 +01:00
};
2026-05-12 13:34:07 +01:00
}