Compare commits

..

3 commits

Author SHA1 Message Date
Youwen Wu
5727abc8e4
fix typos 2024-08-18 15:26:45 -07:00
fb6695fd8e docs: add guide to remote usage 2024-08-18 15:14:06 -07:00
a4e9d79292
feat: add rust-analyzer to all rust outputs 2024-08-18 14:45:23 -07:00
2 changed files with 22 additions and 0 deletions

View file

@ -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 git update-index --skip-worktree .envrc .direnv
``` ```
## Use without downloading
You can also use this in `nix develop` or with `direnv` without downloading it locally 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: ## Provided environments:
- Go - Go

View file

@ -60,18 +60,21 @@
rustBeta = pkgs.mkShell { rustBeta = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
rust-bin.beta.latest.default rust-bin.beta.latest.default
rust-analyzer
]; ];
}; };
rustNightly = pkgs.mkShell { rustNightly = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
rust-bin.nightly.latest.default rust-bin.nightly.latest.default
rust-analyzer
]; ];
}; };
rustStable = pkgs.mkShell { rustStable = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
rust-bin.stable.latest.default rust-bin.stable.latest.default
rust-analyzer
]; ];
}; };