add den pattern
This commit is contained in:
13
modules/ai/ollama.nix
Normal file
13
modules/ai/ollama.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ config, lib, pkgsUnstable, ... }:
|
||||
|
||||
let
|
||||
dirModules = config.features.modules.ai or { };
|
||||
in
|
||||
{
|
||||
config = lib.mkIf ((dirModules.enable or false) && (dirModules.ollama.enable or true)) {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
package = pkgsUnstable.ollama-cuda;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user