From 1b131d840ad492f262cc7b94ac5695e77f212a4a Mon Sep 17 00:00:00 2001
From: Eduardo Trujillo <ed@chromabits.com>
Date: Wed, 11 Jan 2023 18:29:29 -0800
Subject: [PATCH] chore(nix): Add direnv config

---
 .envrc     | 1 +
 .gitignore | 3 ++-
 flake.nix  | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 .envrc

diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/.gitignore b/.gitignore
index 62f863d..a7d9f91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /target
 config.toml
-config.yaml
\ No newline at end of file
+config.yaml
+.direnv
diff --git a/flake.nix b/flake.nix
index 0ee57ce..4454359 100644
--- a/flake.nix
+++ b/flake.nix
@@ -27,7 +27,7 @@
 
         devShell = pkgs.mkShell {
           buildInputs = with pkgs; [dbus];
-          nativeBuildInputs = with pkgs; [rustc cargo pkg-config];
+          nativeBuildInputs = with pkgs; [rustc cargo rust-analyzer pkg-config];
         };
 
         formatter = nixpkgs.legacyPackages.${system}.alejandra;
-- 
GitLab