Skip to content

Commit

Permalink
update dream2nix
Browse files Browse the repository at this point in the history
  • Loading branch information
DavHau committed Aug 22, 2023
1 parent 5b7b17d commit 0dc0874
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 243 deletions.
225 changes: 34 additions & 191 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 15 additions & 8 deletions projects/invokeai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@
lock.lockFileRel = "/projects/invokeai/lock-${config.deps.stdenv.system}.json";
};

_callModule = module:
lib.evalModules {
specialArgs.dream2nix = inputs.dream2nix;
specialArgs.packageSets.nixpkgs = pkgs;
specialArgs.inputs = {inherit (inputs) invokeai-src;};
modules = [
module
dream2nix-setup-module
];
};

# like callPackage for modules
callModule = module: (_callModule module).config.public;

in {
packages = {
invokeai-amd = mkInvokeAIVariant {
Expand All @@ -21,14 +35,7 @@
invokeai-nvidia = mkInvokeAIVariant {
aipython3 = aipython3-nvidia;
};
invokeai-d2n = inputs.dream2nix.lib.evalModules {
modules = [
dream2nix-setup-module
./package-d2n.nix
];
packageSets.nixpkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
specialArgs.inputs = {inherit (inputs) invokeai-src;};
};
invokeai-d2n = callModule ./package-d2n.nix;
};
};

Expand Down
Loading

0 comments on commit 0dc0874

Please sign in to comment.