fix(checks): formating

This commit is contained in:
Tim Schubert 2025-07-27 17:16:00 +02:00
parent 730a4b80b5
commit 67b04a636c
No known key found for this signature in database
3 changed files with 4 additions and 22 deletions

View file

@ -1,20 +0,0 @@
{
self,
flake-utils,
nixpkgs,
...
}:
(flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
formatter = self.formatter.${system};
in
{
checks = {
format = pkgs.runCommand "check-format" {
buildInputs = [ formatter ];
} "${formatter}/bin/nixpkgs-fmt --check ${./.} && touch $out";
};
}
)).checks

View file

@ -6,7 +6,6 @@
packages = with pkgs; [
agenix
nixpkgs-fmt
nixos-rebuild
];

View file

@ -27,6 +27,10 @@
in
import ./devshell.nix { inherit pkgs extraModules; };
checks = {
formatting = treefmtEval.config.build.check self;
};
formatter = treefmtEval.config.build.wrapper;
packages = import ./pkgs { inherit pkgs; } // {
@ -35,7 +39,6 @@
}
))
// {
checks = import ./checks.nix inputs;
hmModules = import ./home/modules.nix { lib = nixpkgs.lib; };
hmConfigurations = {
dadada = import ./home;