Skip to content

Commit

Permalink
Create default.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
float3 authored Nov 5, 2024
1 parent 82a973c commit 4d72397
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
name = "stable-diffusion-webui-env";

buildInputs = [
pkgs.wget
pkgs.git
pkgs.python310
pkgs.libglvnd
pkgs.gperftools
];

shellHook = ''
# If using Python 3.11, override the python command variable
export python_cmd="python3.11"
# Notify user of the environment setup and next steps
echo "Environment for stable-diffusion-webui initialized."
echo "To start, run './webui.sh' or check 'webui-user.sh' for options."
'';
}

0 comments on commit 4d72397

Please sign in to comment.