Download shell.nix from Masrkai/LinuxManuals: direct link, hf CLI and curl.
- Browser
- Download file 933 Bytes
-
https://huggingface.co/datasets/Masrkai/LinuxManuals/resolve/main/shell.nix
- Command line
-
hf download hf://datasets/Masrkai/LinuxManuals/shell.nix
-
curl -L -o shell.nix https://huggingface.co/datasets/Masrkai/LinuxManuals/resolve/main/shell.nix
933 Bytes
| { pkgs ? import <nixpkgs> { | |
| config = { | |
| allowUnfree = true; | |
| cudaSupport = true; | |
| }; | |
| } | |
| }: | |
| pkgs.mkShell { | |
| name = "LinuxAssistant"; | |
| buildInputs = with pkgs; [ | |
| # Python + uv | |
| python312 | |
| uv | |
| # Common native deps useful for ML/CUDA projects | |
| stdenv.cc.cc.lib # libstdc++ | |
| zlib | |
| libGL | |
| ]; | |
| shellHook = '' | |
| echo "ββββββββββββββββββββββββββββββββββββββββ" | |
| echo " uv version: $(uv --version)" | |
| echo " Python: $(python --version)" | |
| echo "ββββββββββββββββββββββββββββββββββββββββ" | |
| # Create venv with uv if it doesn't exist yet | |
| if [ ! -d ".venv" ]; then | |
| echo "β Creating venv with uv..." | |
| uv venv .venv --python python3.12 | |
| fi | |
| # Activate it | |
| source .venv/bin/activate | |
| ''; | |
| } | |