Split flake into multiple files
This commit is contained in:
parent
47c2a10ee7
commit
d70a737bc2
9 changed files with 159 additions and 108 deletions
13
packages.nix
Normal file
13
packages.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
treefmt-nix,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
|
||||
treefmtWrapper = treefmtEval.config.build.wrapper;
|
||||
in {
|
||||
packages.formatter = treefmtWrapper;
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue