mirror of
https://github.com/youwen5/nix-dev-envs.git
synced 2024-11-24 10:23:51 -08:00
docs: add guide to remote usage
This commit is contained in:
parent
a4e9d79292
commit
fb6695fd8e
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -44,6 +44,25 @@ If you don't want to commit these files, make sure to run the following:
|
|||
git update-index --skip-worktree .envrc .direnv
|
||||
```
|
||||
|
||||
## Use without downloading
|
||||
|
||||
You can also use this in `nix develop` or with `direnv` without installing it.
|
||||
Simply reference the flake remotely like so:
|
||||
|
||||
```bash
|
||||
nix develop "github:youwen5/nix-dev-envs#<environment"
|
||||
```
|
||||
|
||||
Or in direnv, similarly:
|
||||
|
||||
```bash
|
||||
use flake "github:youwen5/nix-dev-envs#<environment>"
|
||||
```
|
||||
|
||||
> [!WARNING]
|
||||
> You may not be able to access these environments offline, so you should
|
||||
> clone the repo if you want to be able to activate them when offline.
|
||||
|
||||
## Provided environments:
|
||||
|
||||
- Go
|
||||
|
|
Loading…
Reference in a new issue