Add ollama config to nixos-framework

This commit is contained in:
albert 2024-12-17 19:51:54 +01:00
parent 29267699ff
commit b0a8ce7b9d
Signed by: albert
GPG key ID: 3895DD267CA11BA9
2 changed files with 8 additions and 5 deletions

View file

@ -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"
];
};
} }

View file

@ -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