summaryrefslogtreecommitdiff
path: root/dev.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-11-01 06:42:48 -0400
committerseth <[email protected]>2023-11-01 06:42:48 -0400
commit09004f4517eba8f57d37897e34f6ba56ad3653f1 (patch)
tree6ae19b13a2694fe852caa6c77665af24ea59fe9e /dev.nix
parentca59ebcf3dd17153b90a0ceca86af14db941ac3c (diff)
stop using neovim.nix
i had small, but annoying issues here and i don't care for lazy loading much tbh
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;
+ };
+ };
+}