Discourse | Documentation | Blog | Twitter
Use this Orb to install Flox, activate Flox environments and run commands in those environments.
An example
version: '2.1'
orbs:
flox: flox/orb@1.0.0
jobs:
use-flox-orb:
machine:
image: ubuntu-2204:current
steps:
- checkout
- flox/install # <- Install Flox
- flox/activate: # <- Run a command in a Flox environment
environment: flox/nb
command: python --versionInstalls Flox on the runner. If Nix is already present, installs
via nix profile install; otherwise downloads the platform package.
| Parameter | Default | Description |
|---|---|---|
version |
"" |
Specific version to install |
channel |
stable |
stable, qa, nightly, or a commit hash |
disable_metrics |
"false" |
Disable anonymous usage statistics |
retries |
"3" |
Retry count for download and install |
trusted_environments |
"" |
Comma-separated FloxHub envs to trust |
extra_nix_config |
"" |
Lines to append to /etc/nix/nix.conf |
extra_substituters |
"" |
Space-separated Nix binary cache URLs |
extra_substituter_keys |
"" |
Public keys for extra substituters |
proxy |
"" |
HTTP/HTTPS/SOCKS5 proxy URL |
disable_upgrade_notifications |
"true" |
Suppress upgrade notifications |
extra_flox_config |
"" |
Key=value pairs for flox config --set |
Runs a command inside a Flox environment.
| Parameter | Default | Description |
|---|---|---|
command |
"" |
Command to run (required) |
environment |
"" |
Remote environment (e.g. flox/nb) |
dir |
"" |
Path containing a .flox/ directory |
# Minimal: install and activate a remote environment
- flox/install
- flox/activate:
environment: flox/nb
command: python --version
# With options
- flox/install:
disable_metrics: "true"
trusted_environments: "myorg/myenv"
- flox/activate:
dir: "."
command: my-tool --version
# Using a proxy
- flox/install:
proxy: "http://proxy.example.com:8080"
- flox/activate:
environment: flox/nb
command: python --versionWe are happy to welcome you to our Discourse forum and answer your questions! You can always reach out to us directly via the flox twitter account or chat to us directly on Matrix or Discord.
Feel free to file a new issue with a respective title and
description on the the flox/flox-orb repository. If you already
found a solution to your problem, we would love to review your pull request!
The flox-orb is licensed under the MIT. See LICENSE.