mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Developer] enable ollama with yi-coder support by default
Also remove tabnine from systemPackages, since it is obsolete.
This commit is contained in:
parent
5ec0b127ff
commit
540db884d1
1 changed files with 15 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ in {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
tabnine
|
#tabnine
|
||||||
numactl
|
numactl
|
||||||
schedtool
|
schedtool
|
||||||
stress
|
stress
|
||||||
|
|
@ -126,6 +126,20 @@ in {
|
||||||
"doc" "info" "dev" "debug" "static"
|
"doc" "info" "dev" "debug" "static"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.ollama = {
|
||||||
|
enable = mkDefault true;
|
||||||
|
loadModels = [ "yi-coder:1.5b" ];
|
||||||
|
group = "ollama";
|
||||||
|
user = "ollama";
|
||||||
|
package =
|
||||||
|
if config.aviallon.hardware.amd.enable
|
||||||
|
then pkgs.unstable.ollama-rocm
|
||||||
|
else if (config.aviallon.hardware.nvidia.enable && config.aviallon.hardware.nvidia.variant != "nouveau")
|
||||||
|
then pkgs.unstable.ollama-cuda
|
||||||
|
else pkgs.unstable.ollama
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
aviallon.services.journald.extraConfig = {
|
aviallon.services.journald.extraConfig = {
|
||||||
Storage = mkForce "persistent";
|
Storage = mkForce "persistent";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue