mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
17 lines
581 B
Nix
17 lines
581 B
Nix
|
# A lambda suitable to be used for `pkgs.lib.extend`.
|
||
|
self: super: let
|
||
|
publicLib = import ../. { lib = super; };
|
||
|
in
|
||
|
{
|
||
|
inherit (publicLib) filesToAttr 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; };
|
||
|
}
|