diff --git a/nix/dev-shell.nix b/nix/dev-shell.nix new file mode 100644 index 0000000..063cda6 --- /dev/null +++ b/nix/dev-shell.nix @@ -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} + ''; + }