diff --git a/hosts/darwin/default.nix b/hosts/darwin/default.nix index 2e5b47c..a6f5ce5 100644 --- a/hosts/darwin/default.nix +++ b/hosts/darwin/default.nix @@ -108,6 +108,18 @@ in StandardOutPath = "/tmp/emacs.out.log"; }; + +launchd.user.agents.ollama = { + command = "${pkgs.ollama}/bin/ollama serve"; + serviceConfig = { + KeepAlive = true; + RunAtLoad = true; + StandardOutPath = "/tmp/ollama.out.log"; + StandardErrorPath = "/tmp/ollama.err.log"; + }; + }; + + system = { stateVersion = 4; primaryUser = "${user}"; diff --git a/modules/shared/default.nix b/modules/shared/default.nix index d60a72d..62ff1eb 100644 --- a/modules/shared/default.nix +++ b/modules/shared/default.nix @@ -1,7 +1,7 @@ { config, pkgs, ... }: let - emacsOverlaySha256 = "02yxwls39cj02yw03b01hvg6h2fvk9k54adzqgi569mm7ld39rx8"; + emacsOverlaySha256 = "0n7hpzf0j7fgizcfxqsk3i1f06k1clmbkdy099sn1sgh2x2h3ig7"; in { diff --git a/modules/shared/packages.nix b/modules/shared/packages.nix index 03a1bcc..691245f 100644 --- a/modules/shared/packages.nix +++ b/modules/shared/packages.nix @@ -12,7 +12,7 @@ with pkgs; libxext libxrender libxrandr - xterm + xterm # The Web Browsers brave @@ -97,7 +97,6 @@ with pkgs; #nodePackages.prettier # Text and terminal utilities - xterm htop hunspell @@ -115,6 +114,7 @@ with pkgs; # Python packages # python3 virtualenv + uv (python3.withPackages ( python-pkgs: with python-pkgs; [ @@ -153,7 +153,7 @@ with pkgs; )) # LLM - ollama + ollama # Launchd definition in hosts/darwin/default.nix # Social pidgin @@ -229,6 +229,8 @@ with pkgs; ### Agents from https://github.com/numtide/llm-agents.nix + + ++ (with llm-agents.packages.${pkgs.stdenv.hostPlatform.system}; [ hermes-desktop hermes-hud