From 3129df1a2c918f608c1155f4eb746e570adae62b Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sat, 20 Jan 2024 13:39:43 +0530 Subject: [PATCH] use direnv --- .vscode/extensions.json | 5 +++-- .vscode/settings.json | 1 - README.md | 2 +- shell.nix | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 shell.nix diff --git a/.vscode/extensions.json b/.vscode/extensions.json index c4128d3..03e1ad1 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,7 @@ { "recommendations": [ "rust-lang.rust-analyzer", - "jnoortheen.nix-ide" + "jnoortheen.nix-ide", + "mkhl.direnv" ] -} +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index b4ebc4d..e0bc132 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,4 @@ { - "nixEnvSelector.nixFile": "${workspaceRoot}/shell.nix", "editor.formatOnSave": true, // https://twitter.com/sridca/status/1674947342607216641 // "editor.inlayHints.enabled": "offUnlessPressed", diff --git a/README.md b/README.md index 9ad6141..5cd6866 100644 --- a/README.md +++ b/README.md @@ -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] > 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). diff --git a/shell.nix b/shell.nix deleted file mode 100644 index 8745f50..0000000 --- a/shell.nix +++ /dev/null @@ -1 +0,0 @@ -(builtins.getFlake ("git+file://" + toString ./.)).devShells.${builtins.currentSystem}.default