feat: update nixpkgs-patched & nixpaks-common

This commit is contained in:
Ryan Yin
2025-11-01 20:01:22 +08:00
parent 2f47f7dc76
commit 0c2dcc0734
4 changed files with 153 additions and 168 deletions

View File

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