mirror of
https://github.com/Alexandre1a/NixOSDots.git
synced 2026-03-10 00:09:46 +01:00
Added ollama
This commit is contained in:
parent
a4c73bfe3e
commit
8da5aa6485
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user