fix(checks): formating
This commit is contained in:
parent
730a4b80b5
commit
67b04a636c
3 changed files with 4 additions and 22 deletions
20
checks.nix
20
checks.nix
|
@ -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
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
packages = with pkgs; [
|
||||
agenix
|
||||
nixpkgs-fmt
|
||||
nixos-rebuild
|
||||
];
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue