-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
28 lines (25 loc) · 1.04 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
dream2nix.url = "github:nix-community/dream2nix";
dream2nix.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { dream2nix, ... }: {
processComposeModules.default = ./modules/process-compose-module.nix;
flakeModules.nixpkgs = import ./modules/nixpkgs.nix { inherit dream2nix; };
templates = {
default = {
description = "Example flake to run ollama (on CPU) with open-webui frontend";
path = builtins.path { path = ./example/cpu; filter = path: _: baseNameOf path == "flake.nix"; };
};
cuda = {
description = "Example flake to run ollama (with CUDA) with open-webui frontend";
path = builtins.path { path = ./example/cuda; filter = path: _: baseNameOf path == "flake.nix"; };
};
rocm = {
description = "Example flake to run ollama (with ROCm) with open-webui frontend";
path = builtins.path { path = ./example/rocm; filter = path: _: baseNameOf path == "flake.nix"; };
};
};
};
}