add nix setup

This commit is contained in:
Tove 2025-12-10 17:19:52 +01:00
parent 34ded8218d
commit c45d1eb129
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
3 changed files with 11 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

1
.gitignore vendored
View file

@ -1 +1,2 @@
/target
.direnv/

9
shell.nix Normal file
View file

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [
rust-analyzer
cargo
rustc
cargo-watch
];
}