New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app

This commit is contained in:
2026-02-28 15:09:27 +01:00
parent 615755cc2e
commit 2db1430bfd
3 changed files with 315 additions and 309 deletions
+4 -2
View File
@@ -1,13 +1,15 @@
{ config, lib, pkgs, flakeRoot, ... }:
let
ollamaConfPath = flakeRoot + "/assets/conf/apps/ai/ollama/ollama.conf";
ollamaEnv = builtins.readFile ollamaConfPath;
in
{
services.ollama = {
enable = true;
package = pkgs.ollama;
configFile = ollamaConfPath;
environmentFile = builtins.readFile ollamaConfPath;
extraConfig = lib.mkForce ollamaEnv;
wantedBy = [ "multi-user.target" ];
};
}