[Desktop/Developer] enable ollama with yi-coder support by default

Also remove tabnine from systemPackages, since it is obsolete.
This commit is contained in:
Antoine Viallon 2024-12-11 09:58:46 +01:00
parent 5ec0b127ff
commit 540db884d1
No known key found for this signature in database
GPG key ID: 955188C241E23A20

View file

@ -28,7 +28,7 @@ in {
'';
environment.systemPackages = with pkgs; [
tabnine
#tabnine
numactl
schedtool
stress
@ -126,6 +126,20 @@ in {
"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 = {
Storage = mkForce "persistent";
};