dotfiles/nix_environments/open-webui.nix

17 lines
459 B
Nix
Raw Permalink Normal View History

2025-01-09 07:27:36 +00:00
with import <nixpkgs> {};
(pkgs.buildFHSEnv {
name = "open-webui-env";
targetPkgs = pkgs: with pkgs; [
(python311.withPackages (python-pkgs: with python-pkgs; [
pip
]))
libgcc
];
profile = ''
mkdir -p $HOME/.nix-envs/open-webui-env
${python311}/bin/python -m venv $HOME/.nix-envs/open-webui-env
source $HOME/.nix-envs/open-webui-env/bin/activate
$HOME/.nix-envs/open-webui-env/bin/pip install open-webui
'';
}).env