update ollama

This commit is contained in:
2024-11-29 11:51:22 -06:00
parent 657dbc4642
commit 0ac0dda339
4 changed files with 37 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: {
{ config, lib, ... }: {
options.sysconfig.opts.virtualization.nextcloud.enable = lib.options.mkOption {
type = lib.types.bool;
@@ -57,7 +57,7 @@
};
https = true;
home = "/var/lib/nextcloud";
#appstoreEnable = true;
appstoreEnable = true;
extraApps = with config.services.nextcloud.package.packages.apps; {
inherit mail contacts calendar tasks user_oidc;
inherit impersonate end_to_end_encryption notes spreed music memories phonetrack;

View File

@@ -1,4 +1,4 @@
{ config, lib, ... }: {
{ config, lib, inputs, ... }: {
options = {
sysconfig.opts.ollama.enable = lib.options.mkOption {
@@ -11,6 +11,12 @@
services.ollama = {
enable = true;
acceleration = "cuda";
package = let
pkgs-us = import inputs.nixpkgs-us {
system = "x86_64-linux";
config.allowUnfree = true;
};
in pkgs-us.ollama;
};
};
}