mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 08:09:45 +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
11 lines
231 B
Nix
11 lines
231 B
Nix
# Just a convenience function that returns the given Nixpkgs standard
|
|
# library extended with the HM library.
|
|
|
|
nixpkgsLib:
|
|
|
|
let
|
|
mkHmLib = import ./.;
|
|
in
|
|
nixpkgsLib.extend (self: super: {
|
|
hm = mkHmLib { lib = super; };
|
|
})
|