diff options
| -rw-r--r-- | nix/modules/home/user.nix | 4 | ||||
| -rw-r--r-- | nix/modules/ollama.nix | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/nix/modules/home/user.nix b/nix/modules/home/user.nix index 12bba2e..d0cad9a 100644 --- a/nix/modules/home/user.nix +++ b/nix/modules/home/user.nix @@ -26,6 +26,8 @@ packages = with pkgs; (if config.monorepo.profiles.graphics.enable then [ # wikipedia # kiwix kiwix-tools + mupdf + zathura # passwords age sops @@ -38,7 +40,7 @@ # Apps # octaveFull - vesktop grim swww vim telegram-desktop + vesktop grim swww vim telegram-desktop qwen-code # Sound/media pavucontrol alsa-utils imagemagick ffmpeg helvum diff --git a/nix/modules/ollama.nix b/nix/modules/ollama.nix index 736d5a4..33c41c9 100644 --- a/nix/modules/ollama.nix +++ b/nix/modules/ollama.nix @@ -1,8 +1,15 @@ { config, lib, ... }: { services.ollama = { - enable = lib.mkDefault config.monorepo.profiles.workstation.enable; - acceleration = "cuda"; + enable = lib.mkDefault (!config.monorepo.profiles.ttyonly.enable); + acceleration = if (config.monorepo.profiles.workstation.enable) then "cuda" else null; + loadModels = [ + "qwen3:30b" + "qwen3-coder:latest" + "qwen2.5-coder:latest" + "qwen2.5-coder:3b" + "gemma3:12b-it-qat" + ]; host = "0.0.0.0"; openFirewall = true; }; |
