Add ollama config to nixos-framework
This commit is contained in:
parent
29267699ff
commit
b0a8ce7b9d
2 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,8 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
environment.systemPackages = with pkgs; [ ollama ];
|
services.ollama = {
|
||||||
networking.firewall.allowedTCPPorts = [ 11434 ];
|
enable = true;
|
||||||
|
loadModels = [
|
||||||
# TODO: Add SystemD services to start / stop ollama serve
|
"vanilj/Phi-4"
|
||||||
}
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
../../common/services/podman.nix
|
../../common/services/podman.nix
|
||||||
../../common/services/geoclue.nix
|
../../common/services/geoclue.nix
|
||||||
../../common/services/syncthing.nix
|
../../common/services/syncthing.nix
|
||||||
|
../../common/services/ollama.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||||||
|
|
Loading…
Reference in a new issue