move ollama configs

This commit is contained in:
Sean Buckley 2024-11-23 22:55:15 -05:00
parent aad34eeef4
commit 7566b43058
3 changed files with 11 additions and 8 deletions

10
hosts/levi/ai.nix Normal file
View file

@ -0,0 +1,10 @@
{
services.ollama = {
enable = true;
acceleration = "cuda";
};
programs.bash.interactiveShellInit = ''
alias ai-code='ollama run qwen2.5-coder:14b'
alias ai-text='ollama run llama3.1:8b'
'';
}

View file

@ -14,14 +14,6 @@ in
} }
]; ];
# services.ollama = {
# enable = true;
# acceleration = "cuda";
# };
# programs.bash.interactiveShellInit = ''
# alias ai='ollama run llama3.1:8b'
# '';
sconfig = { sconfig = {
gnome = true; gnome = true;
desktop.enable = true; desktop.enable = true;

View file

@ -1,6 +1,7 @@
{ {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ modules = [
./ai.nix
./configuration.nix ./configuration.nix
./xorg.nix ./xorg.nix
]; ];