diff --git a/nixos/common/services/ollama.nix b/nixos/common/services/ollama.nix index 94451090..ca73b905 100644 --- a/nixos/common/services/ollama.nix +++ b/nixos/common/services/ollama.nix @@ -1,6 +1,8 @@ { pkgs, ... }: { - environment.systemPackages = with pkgs; [ ollama ]; - networking.firewall.allowedTCPPorts = [ 11434 ]; - - # TODO: Add SystemD services to start / stop ollama serve -} \ No newline at end of file + services.ollama = { + enable = true; + loadModels = [ + "vanilj/Phi-4" + ]; + }; +} diff --git a/nixos/hosts/nixos-framework/default.nix b/nixos/hosts/nixos-framework/default.nix index 440d49f1..30cf75ad 100644 --- a/nixos/hosts/nixos-framework/default.nix +++ b/nixos/hosts/nixos-framework/default.nix @@ -12,6 +12,7 @@ ../../common/services/podman.nix ../../common/services/geoclue.nix ../../common/services/syncthing.nix + ../../common/services/ollama.nix ]; hardware.bluetooth.enable = true; # enables support for Bluetooth