1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

feat: add dev-shell

This commit is contained in:
oddlama 2022-12-09 15:46:22 +01:00
parent ccc9af28fd
commit 08db98efd4
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

37
nix/dev-shell.nix Normal file
View file

@ -0,0 +1,37 @@
{self, ...}: system:
with self.pkgs.${system};
mkShell {
name = "nix-config";
nativeBuildInputs = [
# Nix
cachix
deploy-rs.deploy-rs
nix-build-uncached
nix-linter
alejandra
ragenix
rnix-lsp
statix
# Lua
stylua
(luajit.withPackages (p: with p; [luacheck]))
sumneko-lua-language-server
# GitHub Actions
act
actionlint
python3Packages.pyflakes
shellcheck
# Misc
jq
pre-commit
rage
];
shellHook = ''
${self.checks.${system}.pre-commit-check.shellHook}
'';
}