flake: add formatter attribute in the output

This commit is contained in:
Gabriel Arazas 2022-08-06 14:57:45 +08:00
parent 569c258e51
commit 3002c765a3
2 changed files with 8 additions and 0 deletions

View File

@ -85,6 +85,9 @@ Though, these are just templates mostly for my own purposes so it is not as usef
* `lib` is defined from link:./lib/[my custom library]. * `lib` is defined from link:./lib/[my custom library].
It's another unnecessary export but it's there. It's another unnecessary export but it's there.
* `formatter` is the preferred formatter to be used for my Nix files.
Nothing special here.
=== The remote repo === The remote repo

View File

@ -341,5 +341,10 @@
description = "Basic development shell template"; description = "Basic development shell template";
}; };
}; };
# No amount of formatters will make this codebase nicer but it sure does
# feel like it does.
formatter =
forAllSystems (system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
}; };
} }