automatic1111-webui-nix/flake.nix

23 lines
765 B
Nix
Raw Normal View History

2022-12-31 13:02:46 +03:00
{
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 {
2023-04-03 16:07:27 +03:00
devShells.default = import ./impl.nix {inherit pkgs;};
devShells.rocm = import ./impl.nix {inherit pkgs; isCUDA=false;};
2022-12-31 13:02:46 +03:00
}
);
}