diff options
Diffstat (limited to 'dev.nix')
| -rw-r--r-- | dev.nix | 31 |
1 files changed, 31 insertions, 0 deletions
@@ -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; + }; + }; +} |
