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:06:46 +01:00
parent d894735654
commit 584d327234
3 changed files with 306 additions and 306 deletions
+1 -1
View File
@@ -1641,7 +1641,7 @@ This module will import all necessities.
This Home Manager Nix module (ai.nix) installs the Ollama package and configures it by reading a simple key-value configuration file (ollama.conf) for settings like the server host and default model. It sets environment variables (OLLAMA_HOST and OLAMA_DEFAULT_MODEL) for easy access in your shell or applications, with fallback defaults if the config file is missing or empty. Optionally, it also defines a user-level systemd service to automatically start the Ollama server on NixOS or systems with Home Managers systemd support enabled.
#+begin_src nix :tangle home/apps/ollama.nix :noweb tangle :mkdirp yes
{ lib, pkgs, flakeRoot }:
{ config, lib, pkgs, flakeRoot, ... }:
let
ollamaConfPath = flakeRoot + "/apps/ai/ollama/ollama.conf";
in