Skip to content

Commit

Permalink
flake: nixosTests/${name} instead of ${name}-toplevel
Browse files Browse the repository at this point in the history
Closes 152
  • Loading branch information
mightyiam committed Feb 13, 2024
1 parent 7c20b94 commit dce8d09
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 dce8d09

Please sign in to comment.