use direnv

This commit is contained in:
Sridhar Ratnakumar 2024-01-20 13:39:43 +05:30
parent 9c0c3d8c9c
commit 3129df1a2c
4 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,7 @@
{ {
"recommendations": [ "recommendations": [
"rust-lang.rust-analyzer", "rust-lang.rust-analyzer",
"jnoortheen.nix-ide" "jnoortheen.nix-ide",
"mkhl.direnv"
] ]
} }

View file

@ -1,5 +1,4 @@
{ {
"nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix",
"editor.formatOnSave": true, "editor.formatOnSave": true,
// https://twitter.com/sridca/status/1674947342607216641 // https://twitter.com/sridca/status/1674947342607216641
// "editor.inlayHints.enabled": "offUnlessPressed", // "editor.inlayHints.enabled": "offUnlessPressed",

View file

@ -1,4 +1,4 @@
A template Rust project with fully functional and no-frills Nix support, as well as builtin VSCode configuration to get IDE experience without any manual setup (just open in VSCode and accept the suggestions). A template Rust project with fully functional and no-frills Nix support, as well as builtin VSCode configuration to get IDE experience without any manual setup (just [install direnv](https://nixos.asia/en/direnv), open in VSCode and accept the suggestions).
>[!NOTE] >[!NOTE]
> If you are looking for the original template based on [this blog post](https://srid.ca/rust-nix)'s use of `crate2nix`, browse from [this tag](https://github.com/srid/rust-nix-template/tree/crate2nix). The evolution of this template can be gleaned from [releases](https://github.com/srid/rust-nix-template/releases). > If you are looking for the original template based on [this blog post](https://srid.ca/rust-nix)'s use of `crate2nix`, browse from [this tag](https://github.com/srid/rust-nix-template/tree/crate2nix). The evolution of this template can be gleaned from [releases](https://github.com/srid/rust-nix-template/releases).

View file

@ -1 +0,0 @@
(builtins.getFlake ("git+file://" + toString ./.)).devShells.${builtins.currentSystem}.default