2023-12-23 03:03:17 +00:00
|
|
|
# A lambda suitable to be used for `pkgs.lib.extend`.
|
2024-01-01 05:56:10 +00:00
|
|
|
self: super:
|
|
|
|
let
|
2023-12-23 03:03:17 +00:00
|
|
|
publicLib = import ../. { lib = super; };
|
|
|
|
in
|
|
|
|
{
|
2023-12-25 12:04:35 +00:00
|
|
|
inherit (publicLib) countAttrs getSecrets attachSopsPathPrefix;
|
2023-12-23 03:03:17 +00:00
|
|
|
|
|
|
|
# Until I figure out how to properly add them only for their respective
|
|
|
|
# environment, this is the working solution for now. Not really perfect
|
|
|
|
# since we use one nixpkgs instance for each configuration (home-manager or
|
|
|
|
# otherwise).
|
|
|
|
private = publicLib
|
2024-01-01 05:56:10 +00:00
|
|
|
// import ../private.nix { lib = self; }
|
|
|
|
// import ../home-manager.nix { lib = self; };
|
2023-12-23 03:03:17 +00:00
|
|
|
}
|