forked from virchau13/automatic1111-webui-nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
22 lines (20 loc) · 765 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
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;};
}
);
}