Skip to content

Commit

Permalink
dev(flake): added dev shell with rust stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
luisnquin committed Apr 5, 2024
1 parent e53e2fc commit 30f6a30
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,19 @@

nixosModules.default = import ./nix/nixos-module.nix self;
homeManagerModule.default = import ./nix/hm-module.nix self;

devShells.default = eachSystem (system: let
pkgs = pkgsFor.${system};
in
pkgs.mkShell (let
rust-latest = pkgs.rust-bin.stable.latest.default.override {
extensions = [
"rust-src"
"rust-analyzer"
];
};
in {
buildInputs = with pkgs; [rust-analyzer cargo rust-latest];
}));
};
}

0 comments on commit 30f6a30

Please sign in to comment.