{"id":22847645,"url":"https://github.com/josh/ollama-models-nix","last_synced_at":"2025-07-27T06:06:15.870Z","repository":{"id":267831364,"uuid":"901002594","full_name":"josh/ollama-models-nix","owner":"josh","description":"Ollama models via Nix","archived":false,"fork":false,"pushed_at":"2025-07-13T19:04:48.000Z","size":493,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-13T21:18:17.068Z","etag":null,"topics":["nix","ollama"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-09T21:33:42.000Z","updated_at":"2025-07-13T19:04:51.000Z","dependencies_parsed_at":"2025-01-13T11:31:07.841Z","dependency_job_id":"b5f1240a-b908-4411-bcc3-152c1113ac72","html_url":"https://github.com/josh/ollama-models-nix","commit_stats":null,"previous_names":["josh/ollama-models-nix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/josh/ollama-models-nix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Follama-models-nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Follama-models-nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Follama-models-nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Follama-models-nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josh","download_url":"https://codeload.github.com/josh/ollama-models-nix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josh%2Follama-models-nix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267312258,"owners_count":24067774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nix","ollama"],"created_at":"2024-12-13T04:08:42.388Z","updated_at":"2025-07-27T06:06:15.823Z","avatar_url":"https://github.com/josh.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ollama-models-nix\n\nAn `ollama` already exists upstream in nixpkgs. This repository provides locked models from the [Ollama registry](https://ollama.com/search) that can be used with the `OLLAMA_MODELS` environment variable. Models will be loaded from you Nix store rather than lazily downloaded.\n\n## Usage\n\n```sh\nexport OLLAMA_MODELS=$(nix build --print-out-paths github:josh/ollama-models-nix#llama3_2.3b)\nollama serve\n```\n\nMultiple models can easily be merged into a single directory using [nixpkgs](https://github.com/NixOS/nixpkgs) `symlinkJoin`.\n\n```nix\nlet\n  ollama-models-flake = builtins.getFlake \"github:josh/ollama-models-nix\";\n  pkgs = import \u003cnixpkgs\u003e {\n    overlays = [ ollama-models-flake.overlays.default ];\n  };\nin\npkgs.symlinkJoin {\n  name = \"ollama-models\";\n  paths = with pkgs.ollama-models; [ llama3_1 llama3_2.\"3b\" ];\n}\n```\n\nor using by overriding the `ollama-models` package.\n\n```nix\nlet\n  ollama-models-flake = builtins.getFlake \"github:josh/ollama-models-nix\";\n  pkgs = import \u003cnixpkgs\u003e {\n    overlays = [ ollama-models-flake.overlays.default ];\n  };\nin\npkgs.ollama-models.override {\n  models = [ \"llama3.1\" \"llama3.2:3b\" ];\n}\n```\n\nAn `ollama` wrapper can also be generated pre-configured with your models directory.\n\n```nix\nlet\n  system = builtins.currentSystem;\n  ollama-models-flake = builtins.getFlake \"github:josh/ollama-models-nix\";\nin\nollama-models-flake.packages.${system}.ollama.override {\n  models = [ \"llama3.1\" \"llama3.2:3b\" ];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh%2Follama-models-nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosh%2Follama-models-nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosh%2Follama-models-nix/lists"}