mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-21 17:09:46 +01:00
feat: update nixpkgs-patched & nixpaks-common
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
{
|
||||
pkgs,
|
||||
nixpkgs-ollama,
|
||||
pkgs-patched,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pkgs-ollama = import nixpkgs-ollama {
|
||||
inherit (pkgs) system;
|
||||
# To use cuda, we need to allow the installation of non-free software
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
|
||||
in
|
||||
{
|
||||
services.ollama = rec {
|
||||
enable = true;
|
||||
package = pkgs-ollama.ollama;
|
||||
package = pkgs-patched.ollama;
|
||||
acceleration = "cuda";
|
||||
host = "0.0.0.0";
|
||||
port = 11434;
|
||||
|
||||
Reference in New Issue
Block a user