mirror of
https://github.com/virchau13/automatic1111-webui-nix.git
synced 2024-11-25 21:36:10 +03:00
23 lines
765 B
Nix
23 lines
765 B
Nix
{
|
|
description = "AUTOMATIC1111/stable-diffusion-webui flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable;
|
|
flake-utils.url = github:numtide/flake-utils;
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }: let
|
|
isLinux = system: builtins.match ".*linux.*" system != null;
|
|
linuxSystems = builtins.filter isLinux flake-utils.lib.defaultSystems;
|
|
in flake-utils.lib.eachSystem linuxSystems (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
in {
|
|
devShells.default = import ./impl.nix {inherit pkgs;};
|
|
devShells.rocm = import ./impl.nix {inherit pkgs; isCUDA=false;};
|
|
}
|
|
);
|
|
}
|