Ollama on stargate
This commit is contained in:
parent
11bcac1297
commit
53ed61892c
3 changed files with 35 additions and 4 deletions
|
|
@ -31,6 +31,11 @@ in {
|
|||
Search for models of your choice from: <https://ollama.com/library>
|
||||
'';
|
||||
};
|
||||
home = mkOpt path (
|
||||
if impermanence.enable
|
||||
then "${persist}/ollama"
|
||||
else "/var/lib/ollama"
|
||||
) "Path to data folder";
|
||||
ui.enable = mkBoolOpt true "Enable openwebui at localhost:8080";
|
||||
ui.port = mkOption {
|
||||
type = types.port;
|
||||
|
|
@ -49,10 +54,8 @@ in {
|
|||
if nvidia.enable
|
||||
then "cuda"
|
||||
else null;
|
||||
home =
|
||||
if impermanence.enable
|
||||
then "${persist}/ollama"
|
||||
else "/var/lib/ollama";
|
||||
home = cfg.home;
|
||||
|
||||
user = "ollama";
|
||||
group = "ollama";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue