Init commit
This commit is contained in:
26
shell.nix
Executable file
26
shell.nix
Executable file
@@ -0,0 +1,26 @@
|
||||
{pkgs}: {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
python312
|
||||
];
|
||||
shellHook =
|
||||
/*
|
||||
bash
|
||||
*/
|
||||
''
|
||||
if [ ! -d ./venv ]; then
|
||||
python -m venv ./venv
|
||||
|
||||
source ./venv/bin/activate
|
||||
|
||||
pip install -U pip
|
||||
|
||||
pip install open-webui
|
||||
|
||||
deactivate
|
||||
fi
|
||||
|
||||
source ./venv/bin/activate
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user