mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Remove formatting check from flake check
This commit is contained in:
parent
ce141b315c
commit
f05e8522b2
3 changed files with 10 additions and 13 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue