We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d978995 commit a54ee8aCopy full SHA for a54ee8a
flake-modules/dev/default.nix
@@ -8,21 +8,27 @@
8
9
perSystem =
10
{ pkgs, config, ... }:
11
+ let
12
+ fmt = pkgs.nixfmt-rfc-style;
13
+ in
14
{
15
treefmt.config = {
16
projectRootFile = "flake.nix";
17
18
programs = {
- nixfmt-rfc-style.enable = true;
19
+ nixfmt = {
20
+ enable = true;
21
+ package = fmt;
22
+ };
23
statix.enable = true;
24
};
25
26
27
pre-commit = {
28
settings.hooks = {
29
nixfmt = {
- package = pkgs.nixfmt-rfc-style;
30
enable = true;
31
32
33
statix = {
34
0 commit comments