Download flake.nix from rais133/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 889 Bytes
-
https://huggingface.co/spaces/rais133/omniroute/resolve/main/flake.nix
- Command line
-
hf download hf://spaces/rais133/omniroute/flake.nix
-
curl -L -o flake.nix https://huggingface.co/spaces/rais133/omniroute/resolve/main/flake.nix
889 Bytes
| { | |
| description = "OmniRoute - Unified AI router with 160+ providers"; | |
| inputs = { | |
| nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11"; | |
| flake-utils.url = "github:numtide/flake-utils"; | |
| }; | |
| outputs = { self, nixpkgs, flake-utils }: | |
| flake-utils.lib.eachDefaultSystem (system: | |
| let | |
| pkgs = nixpkgs.legacyPackages.${system}; | |
| nodejs = pkgs.nodejs_22; | |
| in | |
| { | |
| devShells.default = pkgs.mkShell { | |
| buildInputs = [ | |
| nodejs | |
| ]; | |
| shellHook = '' | |
| echo "Welcome to OmniRoute dev environment" | |
| export PATH="$PWD/node_modules/.bin:$PATH" | |
| # Install dependencies if node_modules doesn't exist | |
| if [ ! -d "node_modules" ]; then | |
| echo "Installing dependencies..." | |
| npm install | |
| fi | |
| ''; | |
| }; | |
| } | |
| ); | |
| } | |