added ollama plugin
This commit is contained in:
parent
da7a41ce50
commit
62ad7255ba
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue