mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-07 05:19:01 +08:00
currently packaging as a nixosModule so should be easy to integrate with nixos generators in the future. Also looking at making a docker image without systemd
16 lines
310 B
Nix
16 lines
310 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
|
|
getSubdirs =
|
|
dir:
|
|
let
|
|
dirContents = builtins.readDir dir; # Reads the current directory
|
|
folders = builtins.attrNames (lib.attrsets.filterAttrs (_: type: type == "directory") dirContents);
|
|
in
|
|
folders;
|
|
|
|
}
|