New Ollama.nix, the ai.nix did not work out. Added ZED-editor as separate app
This commit is contained in:
+304
-304
File diff suppressed because it is too large
Load Diff
@@ -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 Manager’s 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ lib, pkgs, flakeRoot }:
|
||||
{ config, lib, pkgs, flakeRoot, ... }:
|
||||
let
|
||||
ollamaConfPath = flakeRoot + "/apps/ai/ollama/ollama.conf";
|
||||
in
|
||||
|
||||
Reference in New Issue
Block a user