Skip to content

Commit

Permalink
Merge pull request #153 from ngi-nix/namespaced-checks
Browse files Browse the repository at this point in the history
flake: namespaced checks output
  • Loading branch information
lorenzleutgeb authored Mar 2, 2024
2 parents 3aaafc3 + 9f30d8c commit 2aaa8b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
eachDefaultSystemOutputs = flake-utils.lib.eachDefaultSystem (system: let
pkgs = importNixpkgs system [rust-overlay.overlays.default];
treefmtEval = loadTreefmt pkgs;
toplevel = name: config: nameValuePair "${name}-toplevel" config.config.system.build.toplevel;
toplevel = name: config: nameValuePair "nixosConfigs/${name}" config.config.system.build.toplevel;
in {
packages = importPackages pkgs;
formatter = treefmtEval.config.build.wrapper;
Expand All @@ -128,7 +128,7 @@
checks.${system} =
# For `nix flake check` to *build* all packages, because by default
# `nix flake check` only evaluates packages and does not build them.
nonBrokenPkgs
(mapAttrs' (name: check: nameValuePair "packages/${name}" check) nonBrokenPkgs)
// {
formatting = treefmtEval.config.build.check self;
};
Expand Down

0 comments on commit 2aaa8b5

Please sign in to comment.