lib: rename helpers.nix -> default.nix

The old `default.nix` is inlined into the "lib" flake-module, which is
the only place it was used.

This allows "helpers" to take its rightful place at the root of `./lib` 👑
This commit is contained in:
Matt Sturgeon 2024-09-13 14:44:42 +01:00
parent 0b665b200b
commit 7a147234f8
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
9 changed files with 116 additions and 122 deletions

View file

@ -5,7 +5,21 @@
...
}:
{
perSystem =
{ pkgs, ... }:
{
_module.args.helpers = import ../lib { inherit lib pkgs; };
};
# TODO: output lib without pkgs at the top-level
flake.lib = lib.genAttrs config.systems (
lib.flip withSystem ({ pkgs, ... }: import ../lib { inherit pkgs lib; })
lib.flip withSystem (
{ pkgs, ... }:
{
# NOTE: this is the publicly documented flake output we've had for a while
check = import ../lib/tests.nix { inherit lib pkgs; };
helpers = import ../lib { inherit lib pkgs; };
}
)
);
}