Remove formatting check from flake check

This commit is contained in:
SebastianStork 2025-02-24 19:56:19 +01:00
parent ce141b315c
commit f05e8522b2
3 changed files with 10 additions and 13 deletions

View file

@ -4,8 +4,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
checks = { checks = {
treefmt = (import ./treefmt.nix { inherit inputs pkgs; }).check self;
statix = pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } '' statix = pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
statix check ${self} statix check ${self}
mkdir $out mkdir $out

View file

@ -3,6 +3,15 @@
perSystem = perSystem =
{ pkgs, ... }: { pkgs, ... }:
{ {
formatter = (import ./treefmt.nix { inherit inputs pkgs; }).wrapper; formatter =
(inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
prettier.enable = true;
just.enable = true;
};
settings.formatter.nixfmt.excludes = [ "modules/home/shell/aliases.nix" ];
}).config.build.wrapper;
}; };
} }

View file

@ -1,10 +0,0 @@
{ inputs, pkgs, ... }:
(inputs.treefmt-nix.lib.evalModule pkgs {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
prettier.enable = true;
just.enable = true;
};
settings.formatter.nixfmt.excludes = [ "modules/home/shell/aliases.nix" ];
}).config.build