mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
17 lines
549 B
Nix
17 lines
549 B
Nix
# A lambda suitable to be used for `pkgs.lib.extend`.
|
|
self: super:
|
|
let
|
|
publicLib = import ../. { lib = super; };
|
|
in
|
|
{
|
|
inherit (publicLib) countAttrs getSecrets attachSopsPathPrefix;
|
|
|
|
# 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
|
|
// import ../private.nix { lib = self; }
|
|
// import ../home-manager.nix { lib = self; };
|
|
}
|