Added ollama

This commit is contained in:
Alexandre 2025-12-26 23:19:58 +01:00
parent a4c73bfe3e
commit 8da5aa6485
3 changed files with 11 additions and 1 deletions

View File

@ -10,6 +10,9 @@ in
commonHome // { commonHome // {
# Refer to the nixOS host for info about home-manager # Refer to the nixOS host for info about home-manager
# inherit commonHome; # inherit commonHome;
imports = [
(import ../../common/ai.nix { gpu = "metal"; })
];
home.stateVersion = "25.11"; home.stateVersion = "25.11";
# Allow unfree packages # Allow unfree packages

View File

@ -12,6 +12,7 @@ commonHome // {
# manage. # manage.
imports = [ imports = [
../../modules/home-manager/hyprland.nix ../../modules/home-manager/hyprland.nix
(import ../../modules/common/ai.nix { gpu = "cuda"; })
]; ];
# This value determines the Home Manager release that your configuration is # This value determines the Home Manager release that your configuration is
# compatible with. This helps avoid breakage when a new Home Manager release # compatible with. This helps avoid breakage when a new Home Manager release

View File

@ -1,8 +1,14 @@
{ gpu ... }:
{ {
services = { services = {
ollama = { ollama = {
enable = true; enable = true;
loadModels = [ "" "" ]; loadModels = [ "codegemma:7b-instruct" "codegemma:7b-code" "codegemma:2b" "starcoder2:7b" ];
acceleration = gpu;
};
open-webui = {
enable = true;
}; };
}; };