Skip to content

Commit

Permalink
ci(flake): add 'outputs.packages' to 'outputs.checks'
Browse files Browse the repository at this point in the history
  • Loading branch information
trueNAHO committed Feb 18, 2024
1 parent f074f7f commit ab0e62c
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,35 @@
system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
checks = {
nixosConfigurationsBluetop =
self.nixosConfigurations.bluetop.config.system.build.toplevel;
checks =
(
pkgs.lib.attrsets.concatMapAttrs
(k: v: {"${k}Package" = v;})
inputs.self.packages.${system}
)
// {
nixosConfigurationsBluetop =
self.nixosConfigurations.bluetop.config.system.build.toplevel;

nixosConfigurationsMasterplan =
self.nixosConfigurations.masterplan.config.system.build.toplevel;
nixosConfigurationsMasterplan =
self.nixosConfigurations.masterplan.config.system.build.toplevel;

preCommitHooks = preCommitHooks.lib.${system}.run {
hooks = {
alejandra.enable = true;
convco.enable = true;
typos.enable = true;
yamllint.enable = true;
};
preCommitHooks = preCommitHooks.lib.${system}.run {
hooks = {
alejandra.enable = true;
convco.enable = true;
typos.enable = true;
yamllint.enable = true;
};

settings = {
alejandra.verbosity = "quiet";
typos.exclude = "*.age";
};
settings = {
alejandra.verbosity = "quiet";
typos.exclude = "*.age";
};

src = ./.;
src = ./.;
};
};
};

devShells.default = pkgs.mkShell {
inherit (self.checks.${system}.preCommitHooks) shellHook;
Expand Down

0 comments on commit ab0e62c

Please sign in to comment.