added ollama plugin

This commit is contained in:
Leyla Becker 2024-09-29 12:15:15 -05:00
parent da7a41ce50
commit 62ad7255ba
2 changed files with 19 additions and 9 deletions

View file

@ -51,8 +51,15 @@ in {
} }
); );
services = {
ollama = {
enable = true;
acceleration = lib.mkIf cfg.hasGPU "cuda";
};
# TODO: this should reference the home directory from the user config # TODO: this should reference the home directory from the user config
services.openssh.hostKeys = [ openssh.hostKeys = [
{ {
comment = "leyla@" + config.networking.hostName; comment = "leyla@" + config.networking.hostName;
path = "/home/leyla/.ssh/leyla_" + config.networking.hostName + "_ed25519"; path = "/home/leyla/.ssh/leyla_" + config.networking.hostName + "_ed25519";
@ -60,6 +67,7 @@ in {
type = "ed25519"; type = "ed25519";
} }
]; ];
};
home-manager.users.leyla = lib.mkIf (cfg.isFullUser || cfg.isThinUser) (import ./home.nix); home-manager.users.leyla = lib.mkIf (cfg.isFullUser || cfg.isThinUser) (import ./home.nix);
}; };

View file

@ -106,6 +106,8 @@ in {
# misc extensions # misc extensions
bungcip.better-toml bungcip.better-toml
open-vsx."10nates".ollama-autocoder
] ]
++ (with vscode-marketplace; [ ++ (with vscode-marketplace; [
# js extensions # js extensions