update
This commit is contained in:
parent
04c6cd8cd9
commit
b1fdc9b5a6
7 changed files with 62 additions and 51 deletions
|
|
@ -2,5 +2,19 @@
|
|||
{
|
||||
options.ollama.enable = lib.mkEnableOption "Enable Ollama server /w GPU acceleration";
|
||||
|
||||
config.services.ollama = lib.mkIf config.ollama.enable { enable = true; };
|
||||
config.services.ollama = lib.mkIf config.ollama.enable {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
acceleration = "rocm";
|
||||
rocmOverrideGfx = "11.0.0";
|
||||
};
|
||||
config.networking.firewall = lib.mkIf config.ollama.enable { allowedTCPPorts = [ 11434 ]; };
|
||||
config.environment.persistence."/persist/cache".directories = lib.mkIf config.ollama.enable [
|
||||
{
|
||||
directory = "/var/lib/private/ollama";
|
||||
user = "nouser";
|
||||
group = "nogroup";
|
||||
mode = "u=rwx,g=,o=";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue