mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-07 13:28:59 +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
26 lines
368 B
Nix
26 lines
368 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
system,
|
|
self,
|
|
...
|
|
}:
|
|
let
|
|
inherit (self.packages.${system}) venv;
|
|
in
|
|
pkgs.mkShell {
|
|
packages = [
|
|
pkgs.uv
|
|
pkgs.python310
|
|
];
|
|
env = {
|
|
UV_NO_SYNC = "1";
|
|
UV_PYTHON = "${pkgs.python310}";
|
|
UV_PYTHON_DOWNLOADS = "never";
|
|
};
|
|
shellHook = ''
|
|
unset PYTHONPATH
|
|
export REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
'';
|
|
}
|