mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01:00
6e4b9af080
This change makes use of the `extend` function inside `lib` to inject a new `hm` field containing the Home Manager library functions. This simplifies use of the Home Manager library in the modules and reduces the risk of accidental infinite recursion. PR #994
24 lines
572 B
Nix
24 lines
572 B
Nix
{ lib }:
|
|
|
|
rec {
|
|
dag =
|
|
let
|
|
d = import ./dag.nix { inherit lib; };
|
|
in
|
|
{
|
|
empty = d.emptyDag;
|
|
isDag = d.isDag;
|
|
topoSort = d.dagTopoSort;
|
|
map = d.dagMap;
|
|
entryAnywhere = d.dagEntryAnywhere;
|
|
entryBetween = d.dagEntryBetween;
|
|
entryAfter = d.dagEntryAfter;
|
|
entryBefore = d.dagEntryBefore;
|
|
};
|
|
|
|
strings = import ./strings.nix { inherit lib; };
|
|
types = import ./types.nix { inherit dag lib; };
|
|
|
|
shell = import ./shell.nix { inherit lib; };
|
|
zsh = import ./zsh.nix { inherit lib; };
|
|
}
|