mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
Modularize flake outputs
This commit is contained in:
parent
9b76581f82
commit
63f79df82b
4 changed files with 64 additions and 45 deletions
13
flake/formatter.nix
Normal file
13
flake/formatter.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue