feat: add devshell and direnv

This commit is contained in:
Youwen Wu 2024-10-29 22:11:27 -07:00
parent 5a42cdfb6d
commit 3788778b4f
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 17 additions and 1 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

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

View file

@ -125,9 +125,23 @@
};
};
perSystem =
{ pkgs, ... }:
{ pkgs, system, ... }:
{
formatter = pkgs.nixfmt-rfc-style;
devShells.default = pkgs.mkShell {
buildInputs =
with pkgs;
[
nixd
nixfmt-rfc-style
prettierd
taplo
]
++ [
inputs.viminal.packages.${system}.default
];
};
};
};
}