feat(nix): add style tooling
This commit was merged in pull request #52.
This commit is contained in:
10
src/dotfiles/formatter.nix
Normal file
10
src/dotfiles/formatter.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ inputs, system }:
|
||||
inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} {
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
programs.nixfmt.enable = true;
|
||||
|
||||
settings.formatter.nixfmt.excludes = [
|
||||
"configs/nixos/hosts/*/hardware-configuration.nix"
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user