This commit is contained in:
parent
3d642e2320
commit
2c71c5940c
@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, nixpkgs-unstable, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@ -82,6 +82,15 @@
|
|||||||
fileSystems = [ "/data" ];
|
fileSystems = [ "/data" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
## Ollama
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
package = nixpkgs-unstable.legacyPackages.x86_64-linux.ollama;
|
||||||
|
|
||||||
|
models = "/data/ollama/models";
|
||||||
|
writablePaths = [ "/data/ollama/models" ];
|
||||||
|
};
|
||||||
|
|
||||||
## Networking
|
## Networking
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_forward" = true;
|
"net.ipv4.ip_forward" = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user