Modularize flake outputs

This commit is contained in:
SebastianStork 2024-07-12 00:31:20 +02:00
parent 9b76581f82
commit 63f79df82b
4 changed files with 64 additions and 45 deletions

13
flake/formatter.nix Normal file
View file

@ -0,0 +1,13 @@
{ inputs, ... }:
{
perSystem =
{ pkgs, ... }:
{
formatter =
(inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = "flake.nix";
programs.nixfmt.enable = true;
programs.prettier.enable = true;
}).config.build.wrapper;
};
}