forked from nixified-ai/flake
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
73 lines (68 loc) · 2.11 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
nixConfig = {
extra-substituters = [ "https://ai.cachix.org" ];
extra-trusted-public-keys = [ "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc=" ];
};
description = "A Nix Flake that makes AI reproducible and easy to run";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
invokeai-src = {
url = "github:invoke-ai/InvokeAI/v3.3.0post3";
flake = false;
};
textgen-src = {
url = "github:oobabooga/text-generation-webui/v1.7";
flake = false;
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
hercules-ci-effects = {
url = "github:hercules-ci/hercules-ci-effects";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { flake-parts, invokeai-src, hercules-ci-effects, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
perSystem = { system, ... }: let
pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
_module.args = { inherit pkgs; };
legacyPackages = {
koboldai = builtins.throw ''
koboldai has been dropped from nixified.ai due to lack of upstream development,
try textgen instead which is better maintained. If you would like to use the last
available version of koboldai with nixified.ai, then run:
nix run github:nixified.ai/flake/0c58f8cba3fb42c54f2a7bf9bd45ee4cbc9f2477#koboldai
'';
};
formatter = pkgs.alejandra;
};
flake.templates = {
comfyui = {
path = ./templates/comfyui;
description = "A basic ComfyUI configuration to get you started";
};
};
systems = [
"x86_64-linux"
];
debug = true;
imports = [
hercules-ci-effects.flakeModule
# ./modules/nixpkgs-config
./overlays
./projects/air
./projects/comfyui
./projects/invokeai
./projects/textgen
./website
];
};
}