flake.nix: enable nixfmt-rfc-style hook and formatter
This commit is contained in:
parent
c7497cd5f6
commit
03433d472f
1 changed files with 3 additions and 0 deletions
|
@ -153,6 +153,7 @@
|
||||||
|
|
||||||
# nix
|
# nix
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
|
nixfmt-rfc-style.enable = true;
|
||||||
|
|
||||||
# python
|
# python
|
||||||
pyright.enable = true;
|
pyright.enable = true;
|
||||||
|
@ -189,5 +190,7 @@
|
||||||
shellHook = self.checks.${system}.pre-commit.shellHook;
|
shellHook = self.checks.${system}.pre-commit.shellHook;
|
||||||
};
|
};
|
||||||
devShell.${system} = self.devShells.${system}.default; # compatibility
|
devShell.${system} = self.devShells.${system}.default; # compatibility
|
||||||
|
|
||||||
|
formatter.${system} = pkgs.nixfmt-tree;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue