summaryrefslogtreecommitdiff
path: root/dev.nix
diff options
context:
space:
mode:
Diffstat (limited to 'dev.nix')
-rw-r--r--dev.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev.nix b/dev.nix
new file mode 100644
index 0000000..41573ac
--- /dev/null
+++ b/dev.nix
@@ -0,0 +1,31 @@
+{
+ perSystem = {
+ config,
+ pkgs,
+ ...
+ }: {
+ devShells.default = pkgs.mkShell {
+ shellHook = config.pre-commit.installationScript;
+
+ packages = with pkgs; [
+ actionlint
+ self'.formatter
+ deadnix
+ nil
+ statix
+ stylua
+ ];
+ };
+
+ formatter = pkgs.alejandra;
+
+ pre-commit.settings.hooks = {
+ actionlint.enable = true;
+ alejandra.enable = true;
+ deadnix.enable = true;
+ nil.enable = true;
+ statix.enable = true;
+ stylua.enable = true;
+ };
+ };
+}