diff --git a/checks/default.nix b/checks/default.nix index 650148e..e809449 100644 --- a/checks/default.nix +++ b/checks/default.nix @@ -1,23 +1,38 @@ -{ inputs, self, lib, ... }: { - imports = [ inputs.treefmt-nix.flakeModule inputs.git-hooks-nix.flakeModule ]; +{ + inputs, + self, + lib, + ... +}: +{ + imports = [ + inputs.treefmt-nix.flakeModule + inputs.git-hooks-nix.flakeModule + ]; - perSystem = { pkgs, ... }: { - treefmt.config = { - projectRootFile = ".git/config"; - programs.nixfmt.enable = true; + perSystem = + { pkgs, ... }: + { + treefmt.config = { + projectRootFile = ".git/config"; + programs.nixfmt-rfc-style.enable = true; + }; + + pre-commit.settings.hooks = { + nixfmt-rfc-style.enable = true; + }; + + formatter = pkgs.nixfmt-rfc-style; }; - pre-commit.settings.hooks = { nixfmt.enable = true; }; - - formatter = pkgs.nixfmt-rfc-style; - }; - - flake.checks = let build = _: nc: nc.config.system.build.toplevel; - in { - x86_64-linux = - lib.mapAttrs build { inherit (self.nixosConfigurations) picard; }; - aarch64-linux = lib.mapAttrs build { - inherit (self.nixosConfigurations) sisko; # pbp; + flake.checks = + let + build = _: nc: nc.config.system.build.toplevel; + in + { + x86_64-linux = lib.mapAttrs build { inherit (self.nixosConfigurations) picard; }; + aarch64-linux = lib.mapAttrs build { + inherit (self.nixosConfigurations) sisko; # pbp; + }; }; - }; }