]> Untitled Git - monorepo.git/commitdiff
new flake lock
authorPreston Pan <ret2pop@gmail.com>
Wed, 10 Sep 2025 10:42:30 +0000 (03:42 -0700)
committerPreston Pan <ret2pop@gmail.com>
Wed, 10 Sep 2025 10:42:30 +0000 (03:42 -0700)
nix/modules/home/user.nix
nix/modules/ollama.nix

index 12bba2e055aef1439ae392b42d18955905a7dbd3..d0cad9a083ac5991bf0d9062fc786f0fa8a0c46a 100644 (file)
@@ -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
index 736d5a425377352511a093c2d6045aa2b44d49ac..33c41c98425de083dc0d9c42fd6524e5aacdc410 100644 (file)
@@ -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;
   };