summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-09-10 03:42:30 -0700
committerPreston Pan <ret2pop@gmail.com>2025-09-10 03:42:30 -0700
commit81ddf52e30fe32da76b8f9162a8208d8d0b62ccc (patch)
tree95d5b2e2fe33889e9cdfa1d73bdf147e75c02063
parent32c47bb286e5c39a7d32aebbcfc82b855b503e8d (diff)
new flake lock
-rw-r--r--nix/modules/home/user.nix4
-rw-r--r--nix/modules/ollama.nix11
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;
};