Skip to content

Commit

Permalink
flake: checks: add comments summarizing individual check sections
Browse files Browse the repository at this point in the history
Individual check sections are clarified using comments rather than local
variables to increase expressibility.
  • Loading branch information
trueNAHO committed Sep 2, 2024
1 parent b061dc2 commit bba84d5
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
pkgs = inputs.nixpkgs.legacyPackages.${system};
in {
checks = lib.dotfiles.mergeAttrsUnionOfDisjoint [
# This attribute set contains manually declared checks.
{
gitHooks = inputs.gitHooks.lib.${system}.run {
hooks = {
Expand All @@ -232,6 +233,8 @@
src = ./.;
};
}

# This attribute set contains all Home Manager configurations.
(
lib.mapAttrs'
(
Expand All @@ -250,16 +253,20 @@
inputs.self.homeConfigurations
)
)

# This attribute set contains all packages.
#
# To maintain performance, this attribute set should not contain
# composed or aliased packages.
(
# To maintain performance, this set should not contain composed or
# aliased packages.
builtins.removeAttrs
inputs.self.packages.${system}
["checkWithoutStandalone"]
)
# This generates

# This attribute set contains all
# inputs.self.checks.<SYSTEM>.standalone-<OPTION>-<VALUE> Home Manager
# activation packages from internal module options.
# activation packages generated from internal module options.
(
builtins.mapAttrs
(_: value: value.activationPackage)
Expand Down

0 comments on commit bba84d5

Please sign in to comment.