flake.nix: enable nixfmt-rfc-style hook and formatter

This commit is contained in:
Martin Weinelt 2025-06-15 03:34:20 +02:00
parent c7497cd5f6
commit 03433d472f
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -153,6 +153,7 @@
# nix
deadnix.enable = true;
nixfmt-rfc-style.enable = true;
# python
pyright.enable = true;
@ -189,5 +190,7 @@
shellHook = self.checks.${system}.pre-commit.shellHook;
};
devShell.${system} = self.devShells.${system}.default; # compatibility
formatter.${system} = pkgs.nixfmt-tree;
};
}