15 lines
295 B
Nix
15 lines
295 B
Nix
{ config, lib, pkgs, flakeRoot, ... }:
|
|
|
|
let
|
|
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
|
|
envVars = builtins.fromJSON (builtins.readFile ollamaConfPath);
|
|
in
|
|
|
|
{
|
|
services.ollama = {
|
|
enable = true;
|
|
package = pkgs.ollama;
|
|
environmentVariables = envVars;
|
|
};
|
|
}
|